IMO, this is why it's important to have side projects that use a modern tech stack. Your work code is likely to be years behind the curve, so to keep your skills fresh, find something interesting to create or work on.
This is also important for your career. I have a friend who has been a programmer for 15 years and got laid off this year. His job had him using a very old language that hasn't been updated in 20 years. He's having a terrible time trying to even land interviews. He's a good programmer, but every single language or library he knows have long since been replaced.