I started self employment as software consultant, which worked pretty well despite not having any connections from my previous employment. I only needed one or two projects a year to sustain my lifestyle. Getting two companies a year to accept your application isn't hard. If you write at least 5 applications a month, you need a success rate of less than 5%.
I changed to technical writing later, because text is less of a struggle than code, and educational articles that explain how to use software (e.g., services, tools, SDKs, frameworks, etc.) are paid pretty well, especially compared to the non-technical writing tasks. Regular software consulting projects take months and can haunt you for years. An article takes a few days and after that you can do other things you find interesting.
Via technical writing, I got into other kinds of text related jobs the software industry offers, like social media management (e.g., Twitter/X, newsletters, blogs) for companies with developer audiences.
Usually I work less than 20h a week and I can do it from everywhere, which allows me to travel often and having enough time off to enjoy it.