Hello. It looks like she may have broken that nail and the hard “shell” of the nail is lifted off of the quick which is the pink fleshy part. This can be painful which is why she is probably licking it. It is best to have your veterinarian trim this back and maybe bandage the foot. If it is trimmed back, the nail will regrow .