Gender in the Talmud is beyond binary, and incorporates 8 gender designations, including male, female, androgynous, lacking sexual characteristics, identifying as a different identity from one’s birth identity.  The rabbis recognized that 6 genders were neither male nor female, and that the first human was both.  Please follow the link below to read the full article:
https://www.myjewishlearning.com/article/the-eight-genders-in-the-talmud/