I am baffled that the anglosphere has a dress code for schools in the first place. I don't think I've ever heard of anybody getting even talked to for what they wear in a public school here, and I've had teachers in the family for four decades.
Private schools sure, but those are for nepo babies and idiots.