At the top of every source file I work on is a copyright. I maintain a program where some of those files say copyright 2014, and I created those files the first time. It's a weird feeling sitting in a single codebase that long. Satisfying but also I can't help but wonder if there are other things I could have been doing instead.
It's never too late to change tracks; I worked with a guy who spent 20 years doing Java, he shifted to consultancy building web applications. I also worked with a guy who spent 25 years of his career as a manager at a bank, but who said fuck it and went self-employed writing CSS and advocating for accessibility.
It's never too late for a change of career if you want it.