Fixes regex for contiguous commas with brackets