Since 2018, specialists have been able to legally prescribe medical cannabis...
https://soulinner.com/can-medical-cannabis-actually-help-uk-insomnia-sufferers/
Since 2018, specialists have been able to legally prescribe medical cannabis for insomnia when standard treatments fail. It is not a first-line solution and individual responses vary. Always consult your GP to ensure all NHS pathways are exhausted first.