Currently the only way for UK person to change their gender is for them to apply to the Gender Recognition Panel. It costs them £140 for the privilege of having to do this. The panel can then turn around and refuse the legal recognition. Even if they have had surgery and lived in the role years.