I feel that often 'future-proofing' is basically just a pretext to spend more money than you need to.
Bearing in mind that even a base model MacBook Air can, for instance, edit 4K video perfectly capably, is it really that likely that you'll suddenly be given a task in the next few years that only be done on an M4 Pro, not a M4? The tasks you mention doing now can be comfortably accomplished on any current Mac.
A better form of 'future-proofing' might be to save some money on this purchase, and put it aside in a savings account for a new machine in 3-6 years. At this point, you'll know what you're actual needs are, and won't have to guess.
That being said, for many on this forum (myself included) powerful computers are a hobby and something to enjoy in their own right. If having a beefy computer brings you joy, go for it! It's fine to spend your money on your hobbies and be honest with yourself about the purpose of doing so.