FIXED: ib::Regex is not thread safe