JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = "Key (email)=([email protected]) already exists";
var rx = /\((.+?)\)/ig;
match = rx.exec(str);
alert(match[1]);
while (match !== null) {
match = rx.exec(str);
alert(match[1]);
}