function getSafeOutput(node, newRegExpValue) {
			const tokenBefore = sourceCode.getTokenBefore(node);
			const tokenAfter = sourceCode.getTokenAfter(node);

			return (
				(tokenBefore &&
				!canTokensBeAdjacent(tokenBefore, newRegExpValue) &&
				tokenBefore.range[1] === node.range[0]
					? " "
					: "") +
				newRegExpValue +
				(tokenAfter &&
				!canTokensBeAdjacent(newRegExpValue, tokenAfter) &&
				node.range[1] === tokenAfter.range[0]
					? " "
					: "")
			);
		}
Returns a safe output code considering the before and after tokens.
@param {ASTNode} node The regex node.
@param {string} newRegExpValue The new regex expression value.
@returns {string} The output code.