Parenting looks very very hard and I'm not implying this is easy - being worthy of trust is one of the hardest things in all our relationships. I do, however, think people need to reckon with the fact that a lot of the time the bad thing teachers are protecting kids from (or at least trying to) is their home life.
This is a bad solution to a bad problem. I dont think teachers are qualified to do this nor do I think they are in a position to do it safely but I do think it is important to help kids get out from under abuse.
I think more community would be a better general solution so it isn't just an underpaid, overworked, and opinionated government employee vs an underpaid, overworked, and opinionated parent with the kid crushed in the middle with no outside help they can turn to.