In 2018, UK cannabis laws changed through the Misuse of Drugs Regulations 2001,...

https://www.tntmagazine.com/leisure-entertainment/leisure/why-is-cannabis-still-illegal-in-the-uk-the-history-behind-medical-cannabis-law/

In 2018, UK cannabis laws changed through the Misuse of Drugs Regulations 2001, allowing specialist doctors to prescribe certain cannabis-based medicines like Sativex and Epidyolex. Despite this, cannabis remains classified as a Class B drug for most uses