I've not been diagnosed with ADHD, though have some symptoms (though honestly, some of those are just standard "human living in 2022"), but I do know I have what I would consider an "addictive personality".
I can't answer how gambling addicts or smokers feel, but I will share a similar experience - I had to uninstall Candy Crush Saga from my phone, because I would literally open it, and then "come to" ~40 minutes later at the end of my drive (carpool, not me driving). This went on for about two weeks before I decided to uninstall the game.
I've never been on TikTok, but I do know that mobile games like Candy Crush are designed specifically to be addictive/habit forming - look up "gamification" for some related aspects, though that's really more about applying those sorts of mechanisms (mostly daily login bonuses / streak rewards, but also carefully spaced repetitions / cooldowns to get you to come back multiple times a day, highly stimulating audio and visual feedback for that "dopamine rush") to form habits around other domains (exercise being a theoretically "positive" application).
All that is to say, good on you for recognizing your negative interaction with that app, and for uninstalling it. I don't know where the balance lies when weighing personal freedom (of both you to install whatever you want, and developers to release whatever they want) vs. legislation and regulation, but I do think awareness of the techniques that are being used (similar to how I learn as much as possible about scams / social engineering) is extremely important on a personal level.
One final note - 2048, a few years after Candy Crush, hit me in a pretty similar way. The interesting thing there is, with no ads, microtransactions or fancy animations, it really was the core gameplay loop that I got hooked on. After finally hitting the titular number, however, I uninstalled it and haven't gone back.