Determination of the density region of the symmetry energy probed by the ${\pi }^{-}/{\pi }^{+}$ ratio