Hi there,
Your regex used to catch the source in Option 2 and Option 3 is not correct.
(/test/.*) is not a well formed expression check this link.

Solution:
You can remove the slashes like this: (test.*) [It worked for me as a charm]
or you can escape it like this: (\/test\/.*)
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@Lroca88 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.
Fixed in MicrosoftDocs/azure-docs-pr#44628
@Lroca88 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Thanks, @TravisCragg-MSFT, @dksimpson!