Deepfake detection will always be imperfect. The only solution the epistemological challenge from deepfakes is to securely authenticate legitimate media.
The Coalition for Content Provenance and Authenticity (C2PA -- c2pa.org) is an emerging standard to apply cryptographic signatures to media starting in the camera through the editing phase to distribution and consumption. Unfortunately C2PA does not yet have widespread adoption and we are facing a very challenging few years where we will not reliably be able to distinguish real and fake media.