whole_func_string: function validateRegExpString(node) {
              const patternNode = node.arguments[0]
              const flagsNode = node.arguments[1]
              const pattern =
                  patternNode &&
                  patternNode.type === "Literal" &&
                  typeof patternNode.value === "string"
                      ? patternNode.value
                      : null
              const flags =
                  flagsNode &&
                  flagsNode.type === "Literal" &&
                  typeof flagsNode.value === "string"
                      ? flagsNode.value
                      : null
              validateRegExp(pattern, flags, node)
          }
func_code_string: function validateRegExpString(node) {
              const patternNode = node.arguments[0]
              const flagsNode = node.arguments[1]
              const pattern =
                  patternNode &&
                  patternNode.type === "Literal" &&
                  typeof patternNode.value === "string"
                      ? patternNode.value
                      : null
              const flags =
                  flagsNode &&
                  flagsNode.type === "Literal" &&
                  typeof flagsNode.value === "string"
                      ? flagsNode.value
                      : null
              validateRegExp(pattern, flags, node)
          }
func_documentation_string: Validate RegExp syntax in the first argument of `new RegExp()`.
  @param {ASTNode} node A NewExpression node to check.
  @returns {void}