I have a string that I want to split by certain special characters. But I don\'t want to split anything inside square brackets. How can I set up my regex to ignore cases inside