In relation to the protected characteristics, sex refers to a person who has a particular protected characteristic as a man/boy or as a woman/girl. Sex discrimination is where you’re treated unfairly because of your sex, in certain situations covered by the Equality Act 2010.
Intersex people are not explicitly protected from discrimination by the Equality Act, however nobody should be discriminated against because of their sex or perceived sex.