Release config lock if the regex is invalid