Reason I mention this -- RE save my arse when I reached your level. Easily replaced the coding income, even though I was consulting in my last few years for $120 to $400 per hour.
I have friends who could not get hired in their 40s. At that time, I had not had a regular job in software for 10 years. I'm now 20 years past my final full time job and just making tons of money in Real Estate. Unlike coding tools, the tools you develop to purchase and manage properties does not get rotten like vegetables at Safeway.
Let's face it. We're some of the smartest folks on the planet. Do you Really think any of us can find intellectual stimulation after many years of doing the same thing? Very few of us can.
Do something different. RE is different and will replace your income.