ANYthing can be repaired… with enough money. Even flood damage.
The problem comes later when the mold appears below the carpet, the corrosion from the flooded electronics causes failures and “electric gremlins” that drive you mad and drain your wallet.
If it were me (and I can fix most all that stuff myself) I’d lobby like crazy to get the car totaled.