Therapist suggests that I lose weight to cure depression

I have been dealing with depression lately due to failed relationships. I recently spoke to my therapist about my fear of ending up forever alone and they suggested that I work out more and that getting fit would increase my chances at having a better life.

I went from 206 to 167 during the years of 2020-2022, I was excited to finally express myself and I felt comfortable where I was. Unfortunately after being cheated on, and one bad encounter after another I gained some back and now my confidence is at an all time low. I genuinely do feel like I may have a chance at life if I start again and reach my ultimate goal. I want to be treated well for once, and get to experience everything that normal women do.

For anyone that has lost a significant amount, has things improved for you when it comes to dealing with depression / body image? Anything helps, I am determined to do what I can to lose this weight and get better mentally.