I have this command to extract the domain from the URL
{
"Command": "executeScript_Sandbox",
"Target": "const regex = /https?:\\/\\/(?:www\\.)?([^\\/]+).*/;\nconst str = ${!URL};\nconst subst = `$1`;\n\n// The substituted value will be contained in the result variable\nconst result = str.replace(regex, subst);\n\nreturn result;",
"Value": "baseUrl",
"Description": ""
},
but executing it I receive this error that I never saw before: