Sadly if food was how we coped with things, we have to build a new way of coping for each thing we used it for.
Feeling grief is absolutely normal here!
My suggestion is to find replacements that match the emotion. For boredom, find something new to keep your head and body busy. Some use the time for exercise or a stroll, or start a hobby or craft. For comfort, do something kind for yourself, like buying yourself a book, some clothes, or having a bath with relaxing stuff.
Losing the food noise gave me headspace, and I've used it on things I enjoy.
I've also eaten things I love throughout my weight loss. When I wanted a Magnum, I had a Magnum. Depriving yourself is pointless and you'll soon start hating the medication. Mine is usually a bedtime fancy, so I make sure I've got enough calories spare for it.
Don't be hard on yourself for having got bigger. If the tools had existed, things would be different. I'm certain I'd not have spent 40+ years obese had Mounjaro existed back then. It didn't, so I did my best, so why feel bad?