What does formatting change in the data?
In many cases, a quick format mainly rebuilds file-system records and marks space as available. The old file content can still be present until it is overwritten, but names, folders and file structure may need reconstruction.
Recovery is rarely a simple “undo” operation. First we need to confirm whether the issue is purely logical or whether formatting exposed an unstable device.