r/sugarfree and the book and podcast Food Junkies are very good. Also, check out Dopamine Nation and diversify the ways you get endorphins form your mouth to hobbies, creativity, movement, playing with pets, spirituality, music, learning a new skill boosts dopamine, connection with self and others boosts serotonin, etc, etc. Work on emotion management tools and make a list of non-food rewards. Good luck!
If it helps, the best thing I did for myself was to wean off. I know that isn’t something the works for everyone, since some do better with an “all or nothing” technique. I started first dialing in what would be a good eating window for my lifestyle. Then in my window if I wanted something sweet, I would have it one day, then have nothing sugary the next day. I did a day with/day without for about a week, then did every two days, every 3 days, and so on. It got to the point where I was no longer craving the sweet/sugary items and when eating something in that category I would only be able to take a few bites before it became too much. Now, I am able to indulge when I want something since the cravings are few and far between (thanks stupid period hormones) and it doesn’t create a new incessant urge since I’m not having it often. I also find that when I indulge in something I make (I’m a baker) I’m far less likely to eat too much since I am not using artificial stuff like you might find in processed sweets.