Role of localized electrons in electron-hole interaction: The case of SrTiO3