from pathlib import Path


def extract_filename(input_data: str) -> "tuple[str, str, str]":
    """Extract the component of the filename

    Args:
        input_data (str): Filename with extension

    Returns:
        Python tuple with path, filename and extension

    """
    _filename = Path(input_data.strip('"'))
    path: str = str(_filename.parent) if str(_filename.parent) != "." else ""
    filename: str = _filename.stem
    extension: str = _filename.suffix

    return path, filename, extension