Plenty of people have already said join a gym. I'll build on that and say try and find one that offers group classes - anything from the Les Mills line up, for instance. For several years until Covid struct, I used to do Body Combat twice a week, along with occasional Cx Works and Body Pump. A year before I started doing all of that it had never occurred to me that I might want to set foot in a gym!
In the most difficult stages of my life I've found that exercise raised my energy levels and left me more able to tackle the things I needed to face - and the friends I made through group classes helped as well.
Look for other kinds of in-person group activities (if you play an instrument, open mic nights, retro-computing meets or hackspaces), and give them a go - even if they're not the kind of thing you usually enjoy - be prepared to be surprised!