Don't show hints inside a regexp.

This fixes #10160.