For Linux, as specified in the comment, Foremost can be used. For the dd image Sleuthkit with Autopsy can help. Another option is to use SIFT Workstation, in a virtual machine, which contains tools that can also be helpful.
Note that the data can be recovered only if the SD card was not trimmed:
If I reset my phone, will it also TRIM the fragmented eMMC?