Avoid excessive recompilation of retry pattern and make sure we catch PatternSyntaxException