My parents’/family dog has had almost the same thing going on. Not really any certainty what caused it. He doesn’t dig, so we know it not that. It’s healing now, so hopefully yours heals up soon.
Guess I should also partake in the obligatory dog photos since I’ve been inactive for a while.