Accidentally deleted private/var/folders on macOS Big Sur
You can reinstall “macOS” in the recovery partition, which will install all system-relevant files that are important for the system.  This should solve your problem.