I feel bad for people who aren't saving and investing a decent chunk of their income as a dev.
I think you can be a productive dev well into advanced age, but I think once you get to 40-ish the career becomes more like treading water until you retire.
And if you're the kind of person who doesn't like meetings and wants to go back to being an IC, you might not have that option anymore because you can't take a paycut.