This is another example of people redefining words then claiming other people are unenlightened because they use the original meaning and not the redefinition.
Gender has been used as a synonym for sex for a long time. Merriam-Webster and The Free Dictionary list that meaning before the more recent meaning.
You're simply wrong to claim the way you use the word is the only way it can be used.