How to Future Proof? Simple....
Don't use any Microsoft technology. In the case of scripting there's no real reason for using something like VBA except that "We've always used it". There are several standardized scripting languages out there that run on multiple platforms so always use these and always stick to the standards. Avoid proprietary extensions but if you're really forced to use them isolate them in modules with well defined high level functions.
These are the rules I've lived by. Its difficult in a team environment to convince people of the dangers of pinning your work to one platform, especially one as ubiquitous as Windows, but if nothing else the lessons of recent W10/W11 transitions and changes to licensing models should have emphasized the need to avoid single source lock in at all costs.