Flashlight use at the range in the mission along with the AI pointing the flashlights at their own team gives away the AI and the rest of his team. Flashlights should be used for much closer engagements were the enemy doesn't benefit as much seeing the AI.
To Fix:
You could implement a check for the AI using flashlights:
To see if its in a place like a town or other obstacle like rocks, cliff or forest nearby that you would need flashlights to navigate or search.