This exactly!
There’s almost no context outside dating where I would need to know someone’s gender — unless I’m trying to leverage established power structures.
How about we ban asking about gender in an official/ professional context? The same way employers (at least in Germany) aren’t allowed to ask if you’re pregnant during an interview?