re.sub() bug fixed for handling "[[abc|qwer]]"