from pathlib import Path


def extract_suffix(file_path):
    """Extracts suffix from file path."""

    file_path = Path(file_path)

    if file_path.suffixes[-1] == '.gz':
        suffix = ''.join(file_path.suffixes[-2:])
    else:
        suffix = file_path.suffixes[-1]
    return suffix