If the motor was replaced after the original 2year warranty date on a 2021 bike then yes it would get another 2 . The battery the same !
If the warranties ran out I’d sent it the bearing man for a service 👌
Mates selling his 2022 sl comp with top upgrades ;
https://www.ebay.co.uk/itm/225576932572?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=WpoWuJSVSvm&sssrc=4429486&ssuid=2l1LzfbQTke&var=&widget_ver=artemis&media=COPY
He did say he’s replacing the fork , wheels , brakes , bar/stem so that just leaves the drivetrain which is ok and can upgrade when worn , the battery which can also be upgraded and the tcu which also also can be upgraded and save bucks !