> If historically 'gender' and 'sex' were mostly synonymous but recently people have decided to use the words differently then that's fine, but it doesn't make it wrong for people to still use the words the old way.
But using the phrase “biological gender” isn't using them in the old way: the way in which they were synonymous is in reference to a idea which conflated sex, gender identity, and socially ascribed gender. If one wants to refer to that meaning, there's really no reason to prefer one or the other, though either will be unclear to many modern audiences without additional explanation referencing the outmoded concept being invoked, because the concept being referred to has lost currency.
But if one is discussing the separated concepts, then one cannot honestly use “sex” for the sociological or psychological components or “gender” for the biological component and say it is the “old way”, as the old way doesn't recognize the there being separate components.