Error on packing react app


I developed a lot of things in my app at once and when I tried to package I got this error

[ERROR] app/scripts/vendors.b1aeb308.js::2: Parsing error: Invalid regular expression: /^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/: Invalid escape

The error is in a file generated in the app compilation and I don’t know what functionality introduced it.