The schools I know have specific rules of conduct that says anyone who works at the school can not have a relationship with a student, and also for two years after the student has graduated or left the school. And that’s apart from age of consent.
I’m all for age of consent, but considering that you can have graduates as old as 19-20, and teachers as young as 23-24, I have to admit it seems a bit strange to put restrictions on what they can do outside of (1) what is legal, and (2) what effects their job (like having a relationship with a current student, especially one that you teach).
Like, I know several people in my graduating high-school class that were with someone older than our youngest teacher, a couple of which are still together with the person 10 years later.