Sounds like you are ready for a detox facility or a psych ward for a medication opioid transition. Then follow up with NA & a sponsor. One just cannot wave the surrender flag then pull it down quickly. Each time it crushes self-esteem and just builds more guilt and shame.
You may need MAT and many do. Even so, go to NA and keep your medication routine to yourself. It is no one's business but yours.
The shit out there now is killing people and causing life lasting damage. The Heroin #3 & #4 days were bad in their own right but seem like light & joy compared to the fentanyl, tranq-dope, and Nitazine era.
You can do it. It takes acceptance, admitting being powerless & unmanageable, and truly wanting it each day. Even clean the lion hides behind the tree waiting for one bad decision, isolating one's self, thinking they have it all under control, and not working a solid program. Life is brutal and has no mercy and whatever is inside you driving the addiction wants you dead. Each day someone stays clean and gets smarter the addiction gets another day smarter.
I wish you the best of luck. Yet luck is not what you need. Support is what you need. 95% of your thinking ATM is fucked up and the other 5% needs to be run by your sponsor. Getting clean is the same as weathering a storm. The first 4 months one has to just hang on and find a way to cling on to others that are clean, at all costs. Your life depends on it.