import re
from typing import List


def _split_string_around_a_pattern(string: str, compiled_pattern: re.Pattern) -> List[str]:
    """Splits a given string around a given pattern returning string fragments"""
    return compiled_pattern.split(string)