Will the saved data be lost after turning on the UFS storage extension and then turning it off on the device?

The UFS (Universal Flash Storage) storage extension feature of the device will be enabled for you by default. You don't need to manually turn it on/off. There is no corresponding option in the system settings to enable or disable it.