Trans people often don't pass on the level of gender however. So if you wanted "same gender spaces", it's not going to work.
Whether gender is a "social construct", or just stereotypes, or whatever, I'm not going to worry about here.
You could try for "same gender identity spaces", but then why is that a good idea?
That's not going to create "comfort", as even if makes some males feel good, it will cause problems for many women, impinge on their privacy, and create discomfort.
It's also impossible to really know anyone's gender identity in that situation, so it's just basically a mixed sex space that anyone can enter if they choose.
Makes a lot more sense to just keep with single sex spaces I think.