[loc] relax _VALID_URL regex and improve formats extraction