I dont think that there are easy answers to this.. Actually legalising drugs would help. Giving out free drugs on prescription would bring these people back into society. prison isnt a solution as there are more drugs inside than there are outside.
You blame it all on socialism which indicates that you havent really given it any thought.
My cousin lost her 27 year old son due to drugs a few years ago. It had nothing to do with them being illegal. In fact he probably would have died much sooner if they were, especially like you're talking about making them no cost (which means taxpayers foot the bill).
He was hooked since the age of 15. He was kicked out of school, arrested several times, repeatedly sent to rehab by his parents, and nothing could break his habit except death.
In fact anybody I know that had somebody close to them hooked on this stuff never got off. Rehab doesn't work in almost all cases no matter how hard you try. Look at all the famous people who had problems, and even with all their money, could never get anybody to get them off dope.
The only real solution is to have people not start in the first place. This is very difficult to do with an open borders President. Most of our heroin comes from that southern border and opening it up more will only create more addicts and more deaths.
Prescriptions won't work because for one, it makes the doctor liable if somebody does get hurt or kill themselves. Two is because of that, they would have to prescribe such a low amount. Because drug addiction requires more and more to get high as your system becomes immune to it, the druggie would be back out in the streets to buy more than they were prescribed.
There is not all this dope in jail. You watch too many movies about America. I know somebody who was hooked and went to prison for five years. In prison they have a workout room, and he was built like a tank when he was in there. No dope, eating properly, and nothing better to do with his time than body build. He looked fantastic, and certainly nobody in their right mind would mess with.