Health connect is still in beta it will be a while before they introduce that feature. You can let others apps like samsung Health and sleep for android backup the required data and use it to restore. Make sure to test well if it actually works to avoid data loss.
This is a real issue at design level. This should have been part of the specifications, I don't understand how they can ship unfinished piece of software in latest Android version.
Considering, they ship software where you lose data and need to factory reset due to faulty updates (android 14 storage issue). It can be worse.