Plans for a conversion therapy (since expanded to "practices") ban were in the Queen's Speech of 2021 of the Boris Johnson government. Kemi Badenoch, as the then responsible minister, was supposed to bring it in but thankfully didn't bother. Or perhaps it would have been better if she'd brought in some very anodyne version and the matter would have been laid to rest.
"Measures will be brought forward to address racial and ethnic disparities and ban conversion therapy."
www.gov.uk/government/speeches/queens-speech-2021
It would be interesting to know just why the Johnson government even considered a "conversion" ban in the first place. I suspect a lot of it had to do with "this is what liberal democracies are all doing at present so we should all do it", perhaps some hangover attitudes from the previous trans-captured May government. Perhaps it was seen as offering something "balanced" for the trans after the Cass review into puberty blockers and gender dysphoria treatment had been commissioned. All lubricated along by the false impression that a conversion therapy/practices ban would help the gays when the whole point of it was to make it easier to transition youth, gay youth in particular.