This woman used to be a legislator - and thankfully now solely hangs out at GB News - but as politicians are all in the bag for anti-trans panic, knowing that this is false doesn't matter.
But yes, there literally is in law mention to gender identity. It's called the Equality Act 2010, and by extension, the Gender Recognition Act 2004.

