Mixed ionic-electronic-conducting perovskites such as SrTiO3 are promising materials to be employed in efficient energy conversion or information processing. These materials exhibit a self-doping effect related to the formation of oxygen vacancies and electronic charge carriers upon reduction. It has been found that dislocations play a prominent role in this self-doping process, serving as easy reduction sites, which result in the formation of conducting filaments along the dislocations. While this effect has been investigated in detail with theoretical calculations and direct observations using local-conductivity atomic force microscopy, the present work highlights the optical properties of dislocations in SrTiO3 single crystals. Using the change in optical absorption upon reduction as an indicator, two well-defined arrangements of dislocations, namely a bicrystal boundary and a slip band induced by mechanical deformation, are investigated by means of scanning near-field optical microscopy. In both cases, the regions with enhanced dislocation density can be clearly identified as regions with higher optical absorption. Assisted by ab initio calculations, confirming that the agglomeration of oxygen vacancies significantly change the local dielectric constants of the material, the results provide direct evidence that reduced dislocations can be classified as alien matter embedded in the SrTiO3 matrix.