Personally, I don’t have a problem with school dress codes. And I don’t think it is inappropriate to ban cheerleading outfits in classrooms.
I wouldn’t consider it inappropriate to ban male students from wearing basketball, football or track uniforms in class either.
Saw this in a skit once:
Woman: Do you like my skirt?
Man” Skirt? I thought it was a belt.