As you are finding out, calorie counting doesn’t work, especially if you count in ‘calories’ from exercise.
You need to understand how our bodies work. And we are not a straightforward combustion engine where calories in and calories out need to exactly match. Our bodies are much cleverer than that.
The terrible awful criminal thing about the incessant narrative around calories is that the conversation is never about the kind of calories that we eat and how they stimulate different chemical reactions. A calorie is not a calorie.
A calorie from sugar has a very very different biological path to a calorie from fat or protein.
I would guess you are probably somewhere high up the scale of insulin resistance and this means you won’t lose weight unless you lower your insulin. As you are proving.
You lower insulin by cutting out sugar and starch
The body of scientific evidence for this is huge and extensive. I’d really suggest you get to know the basic biology. You will be surprised to learn that fat doesn’t make you fat, that it isn’t your willpower failing you when you crave and cave for a snack...and it isn’t actually a mystery why you aren’t losing weight.
What you eat is important, and WHEN you eat it.
As pp have recommended, start with Jason Fung and the obesity code.
Or Gary Taubes for a good intro into the problem with insulin.
YouTube, bookshops, google will set you off!