See, for example:
https://www.msofficeforums.com/word/...html#post32031
The second macro there is closest to what you describe. It searches for terms in double-quotes, so you could either change those to square brackets or change your document to use double-quotes.
As an alternative, you might consider creating an Index.