My SO decided to go freelance but was struggling to actually work on things without some sort of outside force to help her (and me lightly prodding her every day or going on library work dates didn't seem to help).
But after a couple of months she stumbled upon a site that has like virtual coworking segments of time, that they call caves.
Basically she signs up for 4-5 of them a day (I think they're an hour apiece), hops on the video meeting, everyone introduces themselves and hops into a private room and works on things. I don't think it would work that well for me (probably find it too distracting) but she's been doing it for several weeks now and she's been a lot more productive since she started.
I do think for some people there is value in having some outside force pressure them into work, and some people would be willing to pay some money for that.