If you deleted these files from the internal SSD and emptied the Trash, then those files are gone due to how SSDs work unless you have other copies of those files stored elsewhere.
If these files were deleted from a Hard Drive, then data recovery software may be able to recover them as long as they have not been overwritten. However, once the Trash has been emptied, those deleted items are likely to lose the path & file name information for the files....meaning you may have to sift through thousands of files to try to figure out exactly which file the data belongs.
Most data recovery software will allow you to scan the drive to see what items it can locate. Some may even allow you to recover several files to prove the software can bring them back, but to recover more of those files requires purchasing the software. As for PhotoRec and TestDisk, the last time I checked several years ago, they still did not support recovering data from APFS volumes. As another user mentioned....these two apps are not easy to use although they do work on supported file systems.
Actually, you may want to check to see whether you have any APFS backup snapshots on your data volume. Here is an Apple article for checking if any APFS snapshots exist....only snapshots on the "Data" volume will contain files from your home user folder. If there are APFS snapshots for the Data volume, then you can have Disk Utility mount that APFS snapshot so you can navigate that snapshot using the Finder. The mounted snapshot will be located in the "/Volumes" folder....Disk Utility can tell you the name of the mounted snapshot, or it may appear on the Finder's Sidebar.
View APFS snapshots in Disk Utility on Mac - Apple Support
Could that data be stored in the cloud somewhere or on some other external media?
If your data is important, then you need to start a backup regimen of some sort. The easiest is to use the Time Machine backup app provided by macOS, or you can choose a third party option. There are a lot more new ways to permanently lose access to the data on the internal SSD of the recent Macs due to all the hardware, software, and security changes......so have frequent & regular backups if your data is important to you. The more important the data, the more backup copies you should have.