Sex is the system of scientific knowledge that gives meaning to the anatomical differences concerning the sexual and reproductive functions of bodies (eg sex chromosomes, gonads, gonadcorticoids, reproductive organs, genitals ) .
Gender identity is your own knowledge or understanding of self as a sexed subject (male, female, or otherwise).
I appreciate this may sound complex. Science often is complex. It doesn’t mean it’s “made up”.