org-babel-balanced-split

org-babel-balanced-split is a compiled Lisp function in `ob-core.el'.

(org-babel-balanced-split STRING ALTS)

Split STRING on instances of ALTS.
ALTS is a cons of two character options where each option may be
either the numeric code of a single character or a list of
character alternatives. For example to split on balanced
instances of "[ ]:" set ALTS to '((32 9) . 58).