from typing import List
import re


def get_fragments(text: str) -> List[str]:
    """Get the properly split fragments from the current user's prompt buffer.

    Args:
        text (str): The text of the current user's prompt buffer

    Returns:
        List[str]: A list of string fragments
    """

    return re.split(r"(?<!\\)\s+", text)