You can still retrieve the deleted photos from your SD card with a professional data recovery app as long as they are not overwritten.
If you didn't save any new photos or videos to the SD card, it's possible that the deleted photos are still physically present on the card and can be restored using iBoysoft Data Recovery for Mac. However, if your SD card is completely refilled with new data, it's unlikely to get them back. In a word, the less you use the SD card, the higher the chance of recovering the deleted photos.
Here's how to restore the deleted photos from your SD card on Mac:
Step 1: Free download and install iBoysoft Data Recovery for Mac.
Step 2: Insert your SD card into your Mac.
Step 3: Launch the SD card recovery tool, select your SD card and click "Search for Lost Data."
Step 4: Preview the files that iBoysoft Data Recovery has found for free.
Step 5: Check the boxes next to the files you want to retrieve, then tap Recover and save them to a different location than the SD card that is being used for data recovery.
[Complete Guide]How to Recover Deleted Photos from SD Card