Your comments

I am seeing this as well with the following string:
r'\[[^\]\]'