That would be nice to have a relative_to method for URL that would not catch the PurePath.relative_to method.
An implementation:
ralative_path = Path(base_url.path).relative_to(Path(child_path.path))
I'll try to take some time one day to help you for this nice package.