Drop redundant module import

Defines `RegExp.quote` directly, without module import. This speeds up tests because of one download less.

X-Ref: #11726