Relatedly, this was a missed opportunity in the UK when the last Labour government were formulating what became the Equality Act 2010.
It's illegal to discriminate against a person's characteristic of age, disability, sex, sexual orientation, gender reassignment, marriage or civil partnership, pregnancy or maternity, race, religion or belief. But not caste.
This was pointed out at the time, but was unfortunately ignored.
Since then, successive Conservative governments have shied away from making any legislative corrections, preferring to rely on case law to resolve this.