import re


def split_groups(brackets: str):
    """Splits a brackets string into it's independent sections by splitting anywhere
    a closing character is followed by an opening character."""
    pattern = re.compile("(?<=[)\]}>])(?=[(\[{<])")
    matches = pattern.split(brackets)
    return matches