Student teacher law?? These two could get married tomorrow. What law are you referring to.
https://tcta.org/node/12941Sexual relationships with students
Sexual contact or indecent exposure with a minor is a felony that requires the perpetrator to register as a sex offender. It also is a felony for a teacher to engage in a sexual relationship with a student, even if that student is of the legal age of consent. This prohibition includes students enrolled in schools where the teacher isn’t employed.
I don't know the exact law, but I guess it's this one:
According to
Texas Penal Code 21.12, an inappropriate relationship between educator and student is a criminal offense. The law covers the employees of public or private secondary and primary schools. It is illegal to engage in sexual contact or intercourse with any student that is officially enrolled in a public or private school. The law also prohibits any form of deviant intercourse with a student by a public or private school employee, including anyone that is required to hold a license or permit under Texas law.
Sexual Relationship with a Student Penalties
If a teacher or other employee has sexual relations with a student in the school or school district where they are employed, they can be criminally charged. A sexual relationship between teacher and student conviction is punishable by up to 20 years in a Texas prison and a fine of no more than $10,000. When someone is suspected or charged with participating in an inappropriate relationship between teacher and student, they should immediately speak with an experienced criminal defense lawyer.
Improper Student-Teacher Relationships Defense
The Texas law that prohibits an inappropriate relationship between educator and student offers two ways to avoid prosecution. The relationship is legally permissible if the educator and student were married when the sexual relationship occurred. It is also acceptable if the relationship began before the acceptance of employment and the age disparity between the educator and student is no more than three years.