Have you tried indie-hacking as your side project, trying to build your own product / tech company?
In my experience, its more interesting and challenging than coding for corporate. You will be motivated to learn a lot of things more than codes, like SEO, marketing, content creating, etc.
It feels really great when you know people pay for your codes / products