The UKMT have updated their website to clarify that the maths competition for girls, and the maths olympiad for girls, are now restricted to biological girls only. I actually hadn't realised that they used to allow self-identification in the past - I wonder how often it happened.
I know there are those who says that there shouldn't be any need for a girls-only competition, as physical differences don't affect maths ability, but I think in a lot of schools, boys can still dominate, especially in extra-curricular maths that involve more discussion and confidence. Plus stereotypes that lurk even from primary school of boys being better at maths. I don't think boys that identify as girls would have had that same background, so I think it's worth having this sort of specific encouragement of girls. All the other competitions are open to children of both sexes.
https://ukmt.org.uk/competitions/mathematical-competition-for-girls