This is also why the attacks on identification documentation for transgender people should concern everyone. We used to consider ex post facto laws unconstitutional - even things like sex registry acts have been historically controversial because they were adding a punishment that had not been previously ordained.
I spent $5500 that I could not afford (as in, I ended up having to do sex work to pay for it) - to get my “irreversible and permanent” surgery that the state I lived in said would qualify to have my legal sex changed. Like, I would have preferred to wait until I was in a more financially stable situation or might not have even bothered because I didn’t even really need to bind to pass - but the drivers license with an “F” is a problem once you have a full beard.
I followed their rules, I played their games. And now they get to say, nope, doesn’t count anymore. That’s not how the law is supposed to work.