Add basicAuth middleware to path with regex

I have some apps which expose an endpoint that I would like to protect using a basic auth middleware. I really don't want to configure each and every application (which has its own ingressRoute) seperately. So I'm looking for something that can match a path like this:


Is this possible?