Schools already address issues of consent, bad touching, where babies come from, relationships, and STDs in their health and biology standards of learning. If students have other questions, there are school counselors standing by and also their parents.
An entire class on the subject of sexuality in high school needs to be an elective or it will cause outrage among some parents if it is mandatory. The knowledge isn't on any test they will ever have to take. Parents should have the right to impart this information to their children themselves, rather than some adult stranger that had a class in teacher's college about it when they weren't black-out drunk having sex with another stranger.
I know this is a depressing thought, but the fact is that every student isn't going to have a sex life, at least with other people, and what kind of expectations is this class going to create? Public school does not exist to serve every need a child has. Given test scores after the pandemic, schools need to buckle down on the basics like literacy and numeracy. Everyone is going to use those skills.