Since 2018, specialists have been able to legally prescribe medical cannabis...
https://wool-wiki.win/index.php/What_Should_I_Expect_If_I_Ask_About_Medical_Cannabis_for_Insomnia%3F
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.