How to Proxy an URL of the this type:

http://example.com/folder/username/api/some-chars

to an internal server?

I have looked for a long time in the apache2 LocationMatch official docs hoping to find a solution how to write correctly the regular expressions that will do the job until I managed to come out with a working solution.