import re


def make_relatives_paths_in_playlist(content: str) -> str:
    """Remain only filenames from absolute paths."""
    # Pattern for matching line into two groups:
    # group 1 - all text before last backward or forward slash (including it)
    # group 2 - filename (with extension)
    regex_pattern = r"(.*[\\|\/])(.*)"
    relative_playlist = re.sub(regex_pattern, r"\2", content)
    return relative_playlist