I think legalization is good. I also think universal healthcare is good. Unfortunately healthcare is super expensive and enabling certain behaviors increases costs a lot. Different estimates seem to suggest that (back in 2015) the opioid epidemic had had an economic cost somewhere between a half a trillion and a trillion dollars, and it's increasing [0, 1]. Full-on prohibition is bad, but maybe there's still lots of societal value in having some controlled substances.
[0] https://www.whitehouse.gov/sites/whitehouse.gov/files/images...
[1]https://altarum.org/news/economic-toll-opioid-crisis-us-exce....