Publish directory template Resolution Folder variable

Let me add my 2 cents.
From your question, I can think of 2 different ideas:

  1. Differnet resolutions can exist as differnet representations withing a single product version where you can set names like 3840_2160 or 3840x2160 as discussed in Publish from Substance Painter : output several resolutions and then use {representation} key in publish template. I guess this may work out the box.
  2. Implement dynamic keys in publish templates, e.g. having sequenceWidth and sequenceHeight template keys that get resolved on publish time, this can allow adding intermediate directories in your product version.