here the ml was the teacher. got more screen time ( in movie) and lot more panels in manga than the guy she ends up with. but she just doesn't end up with the ml.
Like the title :) I've seen one or two similar dramas but then the ML wasn't the "teacher" and her true new love interest was someone else.
Since you put "teacher" in quotes, I'm assuming you don't mean that the ML love interest has to literally be a teacher.
In these dramas, the FL was hurt by a love interest in the past or was naive / uncertain / confused by love until the ML (who is confident in romantic situations and / or sure of his own feelings for the FL from early on in the drama) comes along and "teaches" the FL to let down her walls / open up / enjoy being loved and being in love: