JSFiddle - React, Tailwind, and code Playground
JavaScript
const regex = /(?<=\()[^)]+(?=\))/g
const teststr = 'a(bc)d - нужно получить bc, ab(c)'
console.log(teststr.match(regex))
const regex = /(?<=\()[^)]+(?=\))/g
const teststr = 'a(bc)d - нужно получить bc, ab(c)'
console.log(teststr.match(regex))