I would like to achieve the above but didn't manage it.
I already tried the regex "\.(?![^(]*\))" but it does not work so far.
I want to split the string "replace(<<accountname>>.right(4), Saturn).invert()" like this:
replace(<<accountname>>.right(4), Saturn)
invert()