You need to lift weights seriously, like get your squat at least to bodyweight, ideally 1.5x bodyweight. Of course it's great for the body, but it has profound effects on the mind too, like you might be able to get off those meds. Studies show mental health effects from working out depend on intensity.
Fix your diet and your sleep. Meditate.
The basic concept is invest seriously in yourself and you'll like being by yourself much better.
Agree, and you will meet people at the gym. Learn to lift barbells, not machines. Powerlifters can seem intimidating from a distance but they are the same mix of people as everyone else: nerds, extroverts, introverts, men, women, gay, straight... and in my experience they are very open and friendly to those who are getting started.
If you want a guide to get started, Starting Strength is a good one. It's aimed at novices.
Also if you're in the same apartment/house and city where you were living with your partner, consider moving if you can. Get away from all the reminders of your old life that just amplify the alone feeling. Depression can be related to your situation. At least if you're in a new place, being alone can feel more normal and might act as a reset.