In 2018, UK cannabis law was updated through changes to the Misuse of Drugs...
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 law was updated through changes to the Misuse of Drugs Regulations 2001, not the 1971 Act. This allowed specialist doctors to prescribe certain cannabis-based medicines, like Sativex and Epidyolex, under Schedule 2 controls