There’s been some good information posted here, imho. I’m about your age, had trouble shedding some weight even though I was cycling a lot, active etc. So I’ll tell you what worked for me, some of it others have posted.
The caveat to any of this, is I’m not saying it’s an optimal diet, optimal for cycling performance etc. I’m only talking about losing weight in a manageable way without feeling like crap so that afterward you can focus on cycling performance at a lower bodyweight.
I targeted about 200 grams of protein a day. Breakfast and lunch were focused on helping me hit that target, eating a little fat as well. Protein shakes, cheeses with a decent protein level, greek yogurt, eggs etc.
Tried to keep carbs around 100 grams per day, maybe less. I didn’t include anything I ate on the bike in any of this. However, while I was focused on losing weight I only took in water for shorter rides and if I was going out longer I’d have gatorade or something like that but that’s it, no table sugar, energy chews etc. I carried a gel with me most of the time just in case I bonked but only for that reason.
So what about “feed your training”? As others have touched on, focus on weight loss, not training. It’s not easy but it makes it so much easier to lose weight. Easy rides 1-2 hours, walking, jogging are doable and I ate enough to be able to do that because I feel better if I exercise. But the weight will come off. If you try for a few weeks, keeping the intensity down and then add in a bit of tempo or sweetspot it’s easy to see how much harder it is to maintain the diet if you’re doing that type of work. At least that’s how it was for me, but if you want to focus on weight loss, focus on that knowing you can add the higher level stuff back later with a lighter faster body.
So I am not saying “don’t feed your training”, I am however suggesting that when focused on weight loss don’t do training that needs feeding.
I don’t like not being able to ride hard, I found it easier to do one or two harder efforts once in awhile just for my sanity, 2-3 minutes or a sprint here and there but that was about the limit. Anything more than that affects the diet and the diet is where you lose the weight.
Focus on the diet and getting the weight loss started, eventually I added back in my long ride for a decent amount of time like I am used to doing. And I let myself take in a bit more energy during that ride but only on that ride. I guess when you reach that point has to do with your personal goals. But other than that ride I stuck with what I said earlier.
You mentioned the protein shakes, I was usually having two a day. One at breakfast and one right after my exercise for the day. There are some decent tasting ones and things you can do to make them palatable, but keeping the carbs down overall seemed to help me a lot. If I’m making the protein shake myself I like to use a blender, add a bit of ice. I don’t like the ones made with water, I’d rather use something like Fairlife Skim milk, more protein, better taste. I usually use some flavor of vanilla protein powder, if I add anything else for taste it’s a bit of coffee grounds or a half spoon of peanut butter, it doesn’t take much, you don’t want to over do it. I also drank a fair number of store bought protein shakes, preferably also from Fairlife, I just like the taste and macros work out for the goals I’d set.
Because I’ve seen this recommendation many times and violated it daily while losing quite a bit of weight, I’ll add that I drank a lot of my calories. Between two protein shakes, a can of V8, gatorade while riding and so on I was drinking quite a bit of mine and it worked fine for me. But I also believe I could have eaten some other protein sources and gotten similar results with less protein shakes…
I used Cronometer to track my intake, it helps to get an idea of what you’re taking in and how different things affect your totals day to day. I ate a lot of the same meals over and over once I found out what worked and what wasn’t as helpful for hitting my around 200 grams of protein and about 100 grams of carbs a day goal. Breakfast and lunch didn’t vary much but I tried to have a few different dinner options. I didn’t really have a goal for grams of fat but also didn’t avoid it. I tracked calories and ran a deficit but focused more on the hitting the 200/100 than I did anything else.