I have no difficulty with the word 'sex' meaning biological sex and 'gender' meaning the socially-constructed roles etc that are imposed on the basis of sex.
The World Health Organisation's definition is
Gender refers to the characteristics of women, men, girls and boys that are socially constructed. This includes norms, behaviours and roles associated with being a woman, man, girl or boy, as well as relationships with each other. As a social construct, gender varies from society to society and can change over time.
which is OK I think.
Unlike many posters, I believe I have a gender identity, it is strongly gender non-conforming and is a very distinctive element of who I am.
The WHO definition goes on to make 'gender identity' distinct form both gender and sex:
Gender and sex are related to but different from gender identity. Gender identity refers to a person’s deeply felt, internal and individual experience of gender, which may or may not correspond to the person’s physiology or designated sex at birth.
and it starts to get a bit waffly at that point.
I don't dismiss the concept of gender, or gender identity; I think they are valid and useful concepts. But they lack the observable reality of biological sex, which has not varie[d] from society to society and can change over time as gender has.
So in my opinion, gender exists and is a valid area of study, and may be a real and important part of a person's self-image. E.g. me🙂
But that's different from sex, which is binary and immutable. People can express their gender in any way they like, conforming to gender stereotypes or rejecting them completely, or anything in between.
But their sex is either male or female, full stop.
That's what the IOC ruling has re-affirmed: in sex-segregated sports, gender/gender identity, as defined by the WHO, etc., is irrelevant, it is biological sex that matters.