No, I don’t believe the proxy target has ever been parsed for placeholders.
It’s one of the features listed on the big proxy rewrite issue #1639, (particularly #990 which is referenced):
Add support for “dynamic” backends (backends based on parameters of the request on-the-fly or based on external environment, see #564, #1630 (?), #1894, #199, #990, and its related PR #998)
And the problem with this particular feature request is that it’s potentially a very bad attack vector. Ultimately the server (or its operator) will need to whitelist which hosts to reverse-proxy to. Making those values dynamic makes it easy to make configuration mistakes. Dynamic subdomains aren’t as bad generally but can still be bad. Anyway, some careful thought is required before that rewrite actually happens…
This is just for a staging server where we want to route APIs to certain hostnames based on branch, walled behind authentication as well a IP based firewall, used only for internal company use.