ARELLE-309, re-emergence of python re bug of nested conditional expressions
Swap out re for regex if it's present