Complex sentence: Sex segregation is the separation of people according to their biological sex while gender segregation is the separation of people according to social and cultural constructions of what it means to be male vs female.
Split into simpler sentences: Sex segregation is the separation of people according to their biological sex. This is distinct from gender segregation, which is the separation of people according to social and cultural constructions of what it means to be male vs female.