in reply to regex for [ but not \[

Just do it with two regex steps instead of one:
s/\\\[.*?\]\\//g; # get rid of what you don't want first @wanted = (/\[(.*?)\]/g); # then get what you want