all bad escapes:)
use `/(?:\w+\s+)?(\w+)?\s*(?=\(.*?\))/` instead
but the problem is that it matches empty strings too
maybe remove `?`s