This regex allows to match all in square brackets with ability to escape square brackets by using "\"