Well, it's easy to fix that to recover files deleted from iCloud but still stored in MacBook.
For this problem, you can sync the files back to iCloud. Back up it again and it will show in your iCloud.
You can log in to iCloud.com to recover files deleted both from iCloud Drives and other apps within 30 days, whether you deleted them on iCloud.com or another device that has iCloud Drive turned on. However, you cannot recover or restore files you have permanently deleted.
But you can use third-party software to recover your files. I recommend iBoysoft Data Recovery for Mac to you.
iBoysoft Data Recovery for Mac is professional software to recover kinds of files, including photos, videos, documents, etc. And you can recover files stored in SSD, HDD, SD cards, USB drives, etc.
Here's how to recover files by using iBoysoft Data Recovery for Mac:
Step 1: Free download and open iBoysoft Data Recovery for Mac.
Step 2: Choose the drive or partition you stored your files.
Step 3: Click Search for Lost Data.
Step 4: Find the files you want, click Recover and choose a location to store them.
Step 5: Check to make sure you get the files you want.