Automatically setup output passes

Is there a way to automatically set up the output passes?
For instance:

Every time I change the shot version and the output path, I need to manually rename every single pass to match the new version number.

In Cinema 4D I use what they call tokens, which are basically variables: I set it up once, and C4D does the rest. It’s as simple as typing in something like this:


At that point, Cinema will create a folder in D:\renders using the first variable $prj for the folder name, and the second variable $prj to store the filename. So, for instance:

In Blender it takes so much more time, with the risk of typing something wrong in one of the output passes, especially when there are many of them.

Any hints?

You can try

Thanks, @NewVisitor !
That seems to do exactly what I was looking for.