I’m sorry for what you’ve been through op, and I completely understand how you are feeling.
I’m a nurse, and the only single sex ward in my hospital is gynae. Every other ward has single sex bays, and a toilet designated to that sex. So although you would be on the same ward as a man, you would only potentially pass them in the corridor.
However, limited bed spaces have meant very recently we have had to have mixed sex bays, and I had to put a male into a female bay. He urgently needed treatment and there were no other beds.
Hospitals get charged for mixing sexes in a bay, so it isn’t usually for long and it doesn’t happen very often, only when bed availability is very low.
My trust policy is that those who identify as female are entitled to be in a female bay as that is how they identify, even if they have a penis, regardless of how the females in the bay feel. Although they would not be told if the patient is trans, the trust is very strict on this.
The one female trans patient I have looked after, refused to be put in a female bay and requested a side room (back when there were beds available), as she didn’t want to risk anyone feeling uncomfortable by her presence.
Chances are you will be on an elective surgical ward, where they should specifically plan for female and male bays.
All I can suggest like others, is letting your consultant know, the ward you will be on pre and post op and even pals as well.
Best of luck op!