Those look like house flies to me, and that fig looks tree ripe, the cracks in the skin mean it is very close at least, they don’t always crack though… If you want them jammy you can pick at that stage (when no sap leaks from the stem) and finish ripening for couple days on the counter, or about a week in the fridge. Set them eye up, often syrup will develop and leak out all over the place.
The damage isn’t from them though, you can see they don’t have jaws, probably yellowjackets made the divots.