Covering problems from a formal language point of view