Just discovered the hard way you need to backup the vendor file in TWRP when doing backups.
It''s not selected by default.
There are 2 options "Vendor" and "Vendor Image" - I believe "Vendor" is the correct choice, since TWRP doesn't support flashing the vendor.img from within TWRP.
Hopefully...