As I understand it, Gender is the socio-cultural aspect, and Sex is the biological term.
At best, it's ambiguous. You can't really know what someone means by "gender" without context, such as the mentioning of the sex/gender distinction. "Gender" has become somewhat of an auto-acronym.
What we know for sure is that it's at least significantly decoupled, and almost certainly not completely decoupled.