function isUnnecessarilyWrappedRegexLiteral(node) {
			const args = node.arguments;

			if (args.length === 1 && isRegexLiteral(args[0])) {
				return true;
			}

			if (
				args.length === 2 &&
				isRegexLiteral(args[0]) &&
				isStaticString(args[1])
			) {
				return true;
			}

			return false;
		}
Determines whether the arguments of the given node indicate that a regex literal is unnecessarily wrapped.
@param {ASTNode} node Node to check.
@returns {boolean} True if the node already contains a regex literal argument.