Hi,
Your ILR will remain valid for immigration purposes. But as I read on UK Govt website, its imperative to have current ILR and passports for employment purposes so you'll need to transfer it to another BRP or passport then (as per the rules in 2024).
Regards
Bhavna