I got my first job as a developer with 40 ish and I am now more near the 50's and still coding... So if coding is your passion, just keep learning and up to date ;)
Currently I am a Developer Advocate, that is another escape that still let you code, and let others learn from your acquired knowledge and experience.
You can also look at developer consultant roles ;)
Is good to hear from the older guys like you Paulo :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.