How to recover .cpp files emptied from Trash?

Solution 1:

Your data is gone

The way the SSD deletes data is an immediate and permanent thing. This is why your recovery software won't succeed here. It's so efficient and so secure, Apple removed srm from macOS

Backups : none

Ouch. Unfortunately, your solution would have been to restore from said backup.

Personally, I save all my documents, scripts (bash and AppleScript) to my Cloud drive (iCloud, OneDrive, etc.) It's also backed up to a NAS and to Time Machine. With the low cost and availability of USB drives (flash, spinning and SSD) as well as the many options for cloud storage (both on prem and SaaS), a backup strategy should not be something that gets put on the back-burner because it's too complicated.