I spend most of my life pretty dissociated from how my body is feeling. But every now and then, there's an underlying emotion that will set off a "must eat comfort food" thought process (for me, the culprit emotional triggers are boredom, loneliness and sadness).
It's super easy to indulge that thought and just go with it.
For me, tackling it? Means getting grounded (so, all those grounding 101 activities) in that moment, and then using thought diffusion so that I can do something other than reaching for sugary foods.
Refined sugar addiction is a bit of a bitch. It's up there with some of human beings most addictive products. But IME, as addictions go, it doesn't have the staying power of many addictions if you want to beat it. So, tackle it as an addiction (having non-sugary options in the house to reach for is really helpful, and putting a temp ban on buying those problem foods like Nutella - man, I could eat that stuff by the spoonful!).
The sugar craving tends to pass within an hour. And those sugar cravings pass (for me) within a week, unlike many addictions that can be fighting your resolve for months and months. And after that? The hardest part of the addiction is licked, and I can focus on grounding when those "must eat comfort foods" moments come up. Comforting with something else gradually becomes the new norm.
A helpful habit? Is checking the sugar content (here in Aus, it's specified under the Carbs content) on the nutrition labels of food products. You won't ever find things like fruit juice or sugared popsicles in my fridge. They just ain't worth it - they don't actually deal with the emotion that's triggered it, and the consuming part usually only lasts a few minutes. So it's not actually a helpful way to respond to the emotion at all!
Another habit that's helped me is 'renaming' some of those problem foods. For example, instead of calling it Nutella, it will from henceforth be referred to as "The Lying Paste" (because it isn't actually going to get rid of that emotion, which you may be dissociated from, but it's there...damn covert triggers!!).
The WHO recommends about 24g (6 teaspoons) of refined sugar a day. A lot of people are getting more than that by the time they've poured out their breakfast cereal. But don't be put off - learning which foods have a high hidden sugar content (if you're in the US, watch out for white bread) is something that you learn reeeeally quickly if you do it diligently for a few weeks.
Well done on losing so much weight! Having done that? You can definitely get this thing beat:)