There are data recovery software packages for the Mac. These are not cheap but most offer a free trial. I used Stellar Mac Data Recovery software and it found my file. They have a free trial.
Another one with good reviews is EaseUs. It also has a free trial but recovery limited to 2 GB. This link also lists several others.
Some of them may find your file and then require you to buy the app in order to recover it. Most of these apps are around $100.
One I'd stay away from is Disk Drill. It maybe works fine but it is very intrusive. Popping open when you do various things.