And in-universe characters refer to Thorax as "he", but I'm fairly certain he could turn into a mare if that's something he wanted or needed to do for whatever reason (and my headcanon is that there isn't actually a difference between changeling queens and changeling kings, because if "queen" means what it does for most insects then Thorax has ensured their extinction otherwise)