UK now allows non gendered titles (Mx) or none at all on a driving licence but there is a gender marker hardcoded into the number, I'm not sure what happens to that if someone transitions (there seems to be no provision for non binary people). Passport is just a unique number with no reference to gender coded into it.
@vfrmedia german kind-of soc.sec.no ("Rentenversicherungsnummer") has a gendered 2-digit part. You get a new number when you transition. I think that's one of the very few official things still hardcoded binary gendered.
But they came in trouble with the new official enby genders "divers" and "none", so they decided to "include" enbys into the female number range 50-99.
For german soc.sec, there's now "males" and "others" 🤦
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!