There are two sexes: XX and XY - female and male.
(Almost*) Everything else is varying flavors and degrees of mental illness.
*There is a vanishingly small minority of people who have physical and genetic issues - hermaphrodites, etc. They are literally “one in a million.”
Thank you! And gender is a term of grammar also.