How do I quit sugar

I am feeling so low now it's insane, my family calls me fat, my friends bully me I'm tired of it. I was an extremely obese kid but in 2021 I had enough of the bullying and I started going to the gym and lost almost 26 kgs, ( went from 100 to 74 kilo grams in like 5 months) but I would NOT recommend it to anyone because I used to starve myself and did 1200-1300 calories worth of cardio 5 days a week with no weight training.

Some really devastating stuff happened in my life over the past few years which resulted in me losing track of things and I found comfort in food, especially sugary, addicting pastries, cookies, iced lattes and so much more. It is so bad now that I've gained nearly 13-14 kilos from my lowest and I literally cannot operate without having at least 1-2 sugary treats everyday. Last night I munched on these really heavy Nutella filled choc chip cookies that were 500-600 calories each and I feel awful now, and this is an everyday problem now.

I can eat less, I can exercise, I can drink water- ive done it before I can do it again to lose this weight but one thing I'm NOT confident about are these sugar cravings. Please suggest something I can genuinely do to curb these cravings so I get my life back on track.