Have looked it up before. Gender does mean sex, just as fetus means baby. The Left just likes to redefine words but some are more difficult to convince the whole of society to accept with a different interpretation.
I always understood ‘gender’ to be a grammatical term in the past. Using it this way is a newer thing. Sex was used to indicate male or female in the biological sense.