Use header in middleware as a variable

Simple question. I want to use ReplacePathRegex middleware but i want to inject a content of one custom header into the path where i want rewrite to point to.

for example:

  • "traefik.http.middlewares.test-replacepathregex.replacepathregex.regex=^/foo/(.*)"
  • "traefik.http.middlewares.test-replacepathregex.replacepathregex.replacement=/bar/{REQUEST_HEADER_BLA}/$1"

Is this possible to do in Traefik v2?