The school and the teacher handled this poorly, but this isn’t a pervert. This is a person with a medical condition who chose to handle the revealing of the medical condition poorly. She genetically is female and has a right to live as a female, but this could (and should) have been handled with more sensitivity.
I could “feel” like I’m a dog, but that don’t make it so.