Support nested square brackets