blacklistUrls not working


I have a 3rd party script on my site that I’m trying to blacklist and I can’t seem to get it work using a regexp

  blacklistUrls: [
   new RegExp(/(http[s]?:\/\/)?[^\s(["<,>]*\.tawk\.[^\s(["<,>]*/, 'g')

with an error of

description: {
isTrusted: True
type: TransportError

the regexp match all url that contain but I’m still getting errors logged.