Match words that consist of specific characters, excluding between special brackets