Also just turned 40 this year, coding straight since I graduated college. If you do need to go back to work, there are ways of making it feel more sustainable and not life-draining.
I was feeling close to burnout a couple years ago in my current job, but was lucky enough that they let me drop back to four days a week. And the company is fully remote, so I end up traveling about three months out of the year. I have a hobby that helps me meet people when I travel.
Maybe living overseas also helps life feel less like it’s passing me by.
Ideally I’d be able to take a few month sabbatical, now that I’ve been in my current role for 8+ years. Still working on that…