It doesn't matter what Hansard says, or what the Civil Servant in charge of pushing the legislation through says, or what any MPs say collectively or individually. None of that is relevant to the task of interpreting what Parliament "intended" by the wording of a law.
That's all very well if you believe that those in Parliament play by the rules.
But as those who took part in drafting it said they knew exactly what they were doing, ie creating the fiction of "legal women" (and probably intended as a trojan horse for the future) and wanted trans women to be treated as women.
We were or are lucky that our language has the word sex and that traditionally it has means biological fact, not identities.
Not forgetting is that the aim of the drafters meant that what they creaed was that within the act the protected characteristic was then discrimiated against by the concept of "legal women". ie no other protected characteristic has its rights impinged on by another one.
So the Judges picked up on the intended word soup, and said sorry words have a meaning.
We are lucky that at the time of drafting the bill the use of the word sex, as in sex discrimination, was still common / usual.
Were it only being drafted now you can bet the rainbow coalition would be fighting for it to be the protected characterisic of gender, having worked so hard over the past few decades to pretend that sex and gender are the same thing.
Think how much closed it would have been if we had had the protected characteristc og "gender" and the protected characteristic of "gender reassignment".
What would the Judges has said then.