Quantum dephasing is a universal phenomenon in which the quantum system loses coherence over time due to interactions with the surrounding environment. In this article, we introduced a stochastic scattering model to account for the dephasing effect on spectral line shapes through the interaction with uncorrelated excitations as a co-evolving, non-stationary environment. This non-stationary stochastic approach is generally applicable outside spectroscopy in areas like quantum technologies.