from pathlib import Path


def add_stem_suffix(p: Path, s: str) -> Path:
    """ eg. ("/path/to/file.ext","-suffix") -> ("/path/to/file-suffix.ext")"""
    return p.parent / Path(p.stem + s + p.suffix)