Yes, dress codes are manipulated to discriminate against people and in this case it is atrocious. That said, perhaps school uniforms might be a better idea. It hasn’t hurt British kids and it provides an equal footing for everyone as the poorer kids don’t have to try to keep up with or get shamed by the richer ones…