regular pattern issue

I want to use this pattern in my project

 isCorrectCode(code) {
    const codeRegex = new RegExp(/^(?! s)[p{L}/\|.,";:¿()@#$%^&*'`+-— ?!_{}()>=[]0-9]+$/, 'gu');
   return codeRegex.test(code);
}

but I got the next issue enter image description here

can anyone know how this can be fixed?