Hi there, I get the conclusion that you can still boot into macOS Recovery Mode with no hiccup, then I recommend you apply data recovery software in Recovery Mode and try to scan for the deleted files and partition. iBoysoft Data Recovery Software is suggested here, which does well in disk scanning and data recovery in the meantime.
Once you boot into macOS Recovery Mode and install iBoysoft Data Recovery, you can launch it to begin data recovery then.
Step 1: Select your Mac hard drive to scan for lost data.
Step 2: Preview files for recovery.
Step 3: Select files you want to recover and click Recover.
If you fail to recover the deleted partition, then you need to reinstall macOS in recovery mode. Moreover, please back up your computer on a regular basis to avoid data loss.