Metformin isn't a miracle, it takes a while and can only do so much. I'd strongly advise a low carb / keto / ketovore / carnivore diet to do the heavy lifting of keeping you well for the long term.
I self diagnosed during covid and went straight on low carb even before I'd booked the doctors appointment to confirm what I already knew. It took me 5 weeks of low carb to get my morning blood sugar down from low teens range to sub 7. So I got my fasting blood sugar down even before I started metformin. My HbA1c was 77, even with a month of low carb taking the edge of it.
A year later I've lost a fair bit of weight and my HbA1c is 38. Most of that is down to the diet. Metformin works, but it can't do that by itself. The mostly carnivore diet I follow has had a couple of benefits I really wasn't expecting. My asthma has improved MASSIVELY and acid reflux is a thing of the past. Much more clarity of mind too, and less aches and pains. Your mileage may vary of course.
The most important thing to keep in mind is that the problem didn't happen overnight, and it won't go away overnight either. Eat right. Keep at it. It takes time, but you will get on top of it.