print (backup_path)
backup_path = re.sub(r"<c\:\\temp\\mybackups\\Drive\-C\\Users\\User\\AppData\\Local\\Temp\\scp\d+>", 'c:\temp\mybackups\WinScp', backup_path)
print (backup_path)
from pathlib import Path
backup_path = 'c:/temp/mybackups/Drive-C/Users/User/AppData/Local/Temp/scp26772/home/admin/web'
p = Path(backup_path)
index = p.parts.index('home')
new_path = Path('c:/temp/mybackups/WinScp').joinpath(*p.parts[index:])
print(new_path)