regex to get part of word nodejs

JavaScript
/\(\{#(.*?)#\})\)/g.exec("({#test#})")[1] === "test"
Source

Also in JavaScript: