I have a regex that allows me to find a specific text within a long text without spaces, now I would like to use it dynamically to go looking for different words, try to pass it to dynamic but I can not get it to work.

<https://regex101.com/r/z7mor0/1>

```
const rt = "8.469.505-k"
const ex = '/\b(\w*'+ rt +'\w*)\b/g'

const cleanT = text.replace(/ /g, "")
if( cleanT.match(new RegExp(ex, 'g')) ){
  console.log("si encontro")
}

```