When I was in my 20s, an older programmer gave me thoughts about moving into management. He had tried it, and came back to programming. He said "The problem with being a manager is that they nip at you from the top, and they nip at you from the bottom." Meaning that you not only still had a boss, but you also had people below you that you had to keep pleased, too.
Fun fact: Senior-level programmers are often paid more than their managers. (At least in the companies I've worked for.)
I plan to program 'till retirement. I read plenty and seek out new challenges. With the advent of containerization, K8s, serverless I think there is plenty to learn for the remainder of my work time. I don't fear a younger generation will absorb it all any faster than I will, there's just too much to master.