As someone who has been in the field since 1989 and written code since 1980, I quit writing "Code" at around 45. Why? Cause it got real boring. Scrum/Sprint takes about 50% of the joy of coding out of it. What are you doing today? I'm wring another 3 functions to call a database, and writing test cases, and trying to get my code coverage from 80% to 95%. Sounds like a real exciting day.
There isn't a ton of "i made that satisfaction" 90% of what you write won't be running in 10 years, because a new development trend/language will come in, and the code that runs fine will be re-written to make it more modern.
I'm still in the industry, and writing a fair amount of code. I'm writing demos on how to get structured logging into New Relic. I'm writing kubernetes configs to setup service meshes. I'm mentoring jr programmers. I'm the guy that points out missing functionality in design meetings.
I've moved on an up in my career from being a programmer.
As an analogy: In sales how many people are still cold calling after 15 years in sales. You move on to supporting a named client and move up the ladder. You leave the entry level work to the new kids starting out.