Seems to me that in a footnote, if you counted the number of [ before the first ] you could use that to determine where to end, but that is both obvious and naive, and probably wouldn’t allow for nested footnotes, which would be A Good Thing.