Meditation is not about escaping the world but sharpening our awareness of it. Addiction comes from the Latin dicere, related to the root of the word dictator. It's like having an internal dictator usurping our agency. And Buddhist mindfulness meditation can help to notice that voice and then turn the volume down on it so we can get our lives back.
In many ways the Buddhist perception is closer to Stoicism than to Freudian tactics, but don't toss the baby out with the bathwater. Many people benefit from the psychoanalytical method of finding themselves before they can work on losing themselves. This is particularly true with traumatic experiences that might need to be worked through enough before allowing the mind to wander into dark recesses unrestrained.
Some research has found Buddhism to be as effective at treating addiction as typical methods, which is never anywhere near 100% because addiction is brutally difficult to overcome. One study of 500 opioid addicts had half use a detox program with counselling and the other half study in a Buddhist monastery with a focus on meditation and virtuous living. The abstinence rates were the same. The monastery used meditation to help clients (clients?) recognize the path they're on, then contemplating virtuous living to find their way back to a preferred path that's less frazzled and chaotic. Before researching the role of Buddhism in addiction treatment, it hadn't occurred to me that mindfulness meditation had anything to do with the Buddhist Noble Eightfold Path of virtuous living. All these years of dipping into meditation here and there, I had just been arguing with myself to stop my thoughts from racing, craving the perfection of enlightenment, and missing the most important aspects in the process. Like Stoicism, Buddhism has us check our thoughts and actions to intentionally get on the right path.