The PathRegexp function is supported as of Traefik v3.1.0 (commit).
PathRegexp
So if you got an unsupported function: PathRegexp error, chances are you are using Traefik v2.
unsupported function: PathRegexp