I'm 56. By far the oldest person on my team and older than most of the managers and executives. I've done it all since starting with computers when I was probably 12. I work for small companies where they let me work largely by myself on large problems. I love the challenge of learning new things and am all over AI tools to automate out the redundant boring parts of the being a programmer.
I have been fortunate and successful and managed my finances. I don't even have to work if I don't want to anymore. I do it to keep my brain challenged.
But if I was stuck in a boring mundane programming job for a mega corp then I would retire in a second. I've never stayed at a company once it's grown too big. Middle management kills creativity and sucks the life out of your soul.