Fix Flex Gateway Regex

Job ID: 40347411

Budget: $10 – $30 USD

My Flex Gateway route currently exposes GET /v1/countries/name but should accept any country name after /name/—except “japan”.
The expression I tried, /name/(?!japan), is rejected by the gateway and the route never matches, so the request returns a 404.

What I need from you:
• A working regular expression that lets paths such as /name/china or /name/america through while blocking /name/japan.

If your solution routes correctly and /name/japan is the only value filtered out, the task is complete.