Mostly rebuilding the database on PS5 doesn't delete saved games but if the console thinks that the data is too corrupted then it deletes saved games.