Fixed regex square-bracket bug.

Regexes were being parsed like ordinary ansible host patterns, so
square-bracket groups were getting interpolated wrongly.