const escapeRegExp = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');