I tried a couple of coworking spaces, found one that I liked, and have been going there regularly since - my employer paid for my membership at the time, but I quit my job a year ago and it's still worth it to me to have a space where I can go every day to get out of the house and be _around_ humans, even if I don't socialize with them as much as I could.
I've always identified as an introvert, and used to fantasize about the idea of e.g. working in the top room of a lighthouse for a month - assuming you had a good Internet connection, you could get so much coding done there! - but it seems that being around people is much more important than I'd given it credit for, particularly in the winter when it's pitch black outside at 4pm and you're already kind of depressed by default.