import re
test_string = "@@@__slug1^^__firstname lastname@@@^^^ @@@__deletepurpose^^__Delete Purpose@@@^^^"
pattern = r"@@@__(.*?)\^\^__(.*?)@@@\^\^\^"
matches = re.findall(pattern, test_string)
print("Slug list:", [x for x,y in matches])
print("Name list:", [y for x,y in matches])