Since 2018, medical cannabis has been a legal option for insomnia in the UK...
https://johnathanrsnj030.lucialpiazzale.com/does-chronic-discomfort-or-pain-matter-when-talking-about-insomnia-treatment
Since 2018, medical cannabis has been a legal option for insomnia in the UK when prescribed by a specialist. It is typically considered only after standard treatments haven't provided sufficient relief