I heard an alcoholic talk about his conversation with a therapist; the therapist asked "what's the problem?" and he replied "I'm an alcoholic". The therapist then pointed out "no, that's how you've been treating the problem".
This really stuck with me when I was sorting out my relationship with food, I always thought of myself as a food/sugar addict, but really it was just a way of coping with other stresses and problems (some long term and some more transitional).
If eating healthily was as easy as giving up sugar or taking a drug, then we'd all do it no problem. In a way it would be easier if I was addicted to heroin because it would be harder for people to offer it to me! I found it helpful to follow some really food + body positive people on TikTok/Instagram e.g., mellymayweightloss
I also got really into cooking from scratch and watched some good, healthy recipes on social media too e.g., thehungrygreek
I don't think it's something that really goes away, but I have days where I manage the urge to binge really, really well. On the bad days, I remind myself that I've not 'ruined' anything because each moment in each day is separate- I'm not letting anyone down (not even myself), because eating an entire multipack of crisps isn't a moral decision- so I'm not bad for having done it.
I realise that everything is individual and subjective, but I hope it helps to know you're not alone.