test it on regex101 and engine set to .Net or .NET Regex Tester - Regex Storm
Some regex engines are not supporting conditional parts within the (?<= …)
Another quick test would the debugging and working within the immediate panel, as it is done directly in UiPath