`searchAsInPrompt` isn't particularly descriptive. Instead of adding a `searchAsInPrompt` argument here, I'd add a `wholeWordOnly: true` argument to `*` and `#`.