Match traffic based on path using a wildcard

Hello,

I have a server with a bunch of services that I am currently reverse proxying.

service_a: Default backend that serves an HTML landingpage. subdir.mydomain.net
service_b: Has lots of paths that it relies on. subdir.mydomain.net/*/...
service_c: Has all services sitting in just one single path. subdir.mydomain.net/service_c/...
service_d: Has all services sitting in just one single path. subdir.mydomain.net/service_d/...

As you can see I need a wildcard path condition for service_b. The corresponding rule then would need to be processed after all other “service_*_rules”, which is easily configurable in HAProxy for OPNsense.
Is it somehow possible to match traffic using wildcards in the path condition?

if
    host_matches == "subdir.mydomain.net" and path_starts_with == "/*"
then
    use_backend == service_b