A teacher who dodged jail after having sex with a 15-year-old pupil in her car has been struck off.