Escapes a string so that it can be put into RegExp as a variable
new RegExp(`foo-${escapeRegExp('(bar)')}`, 'i') Copy
new RegExp(`foo-${escapeRegExp('(bar)')}`, 'i')
Escapes a string so that it can be put into RegExp as a variable