def get_loop_indices(dot_bracket: str):
    """
    Return indices for left and right loop sequences.
    """
    return (
        dot_bracket.rindex("(") + 1,
        dot_bracket.index("["),
        dot_bracket.rindex(")") + 1,
        dot_bracket.index("]"),
    )