I have black flies in my compost (fungus gnats)
These are likely to be scariad flies or fungus gnats which are tiny little flies that lay their eggs in compost that is warm and moist. They very rarely cause damage to established plants although the larvae in large numbers can sometimes damage the roots of young seedlings. The adults are more of a nuisance than a worry as they can fly around in large numbers.