function createRequireRegExp(importIdent) {
  return new RegExp(
    `(\\s*)(const|let|var)\\s+.*\\s+=\\s+require\\(['"]${importIdent}['"]\\);`,
  );
}
Returns a regular expression that matches a require statement for the given
identifier.
@param {string} importIdent The identifer of the import to match.
@returns {RegExp} The regular expression.