“...from having slept with a middle-aged teacher from his school.”
27 years old hasn’t been “middle-aged” since the Middle Ages.
40 is middle-aged; 27 is gradschool-aged.