I'm really glad to hear that.
It is terrific that you see your part in the pattern / dance and have really dropped the rope.
Now onwards to your better life and run miles from any guy who has addiction issues, right?
Take heed, those who think they can be "friends" or maintain cordial relations with their ex-but-active addict. It really doesn't work.