"End locked content call does not have a matching start locked content call" message

When defining a tagging rule I get the above message for what normally is a valid regex expression.

What does this message mean?