I m trying to configure ingress to match regex based path matching and rewrite.
example:
path: /([^/]+)/api/(.*)
rewritwe: $2
or many more complex path matching and path rewriting can be used.
I go though with document but there is no proof that it's support regex based path matching.
https://docs.redhat.com/en/documentation/openshift_container_platform/4.9/html/networking/configuring-routes#nw-path-based-routes_route-configuration