FWIW, I've been married the whole time I've been a freelancer, and the loneliness didn't settle in until year 5 or so. Your spouse will probably not want to talk shop all the time, and those types of conversations (tech, business, etc) were what I missed the most. But maybe I'm just excessively sensitive!
I've found tech meetups scratch that itch a little bit but I'm 2 years into remote (with a wife and 2 kids) so maybe more is coming... Just curious if you tried that and if it worked or not for you?
I've only started going to tech meetups recently, as an attempt to socialize. It's definitely helped! I basically avoided it for the first 6 years, so I'd recommend it very much.