This study explores the interior geometry of static relativistic charged spheres in the background of a recently proposed modified [Formula: see text] gravity, where [Formula: see text] and [Formula: see text] are the Gauss–Bonnet (GB) invariant and trace of energy–momentum tensor, respectively. The GB gravity is the low-energy limit of superstring theories. The structures of specific relativistic charged spheres Vela [Formula: see text], [Formula: see text], and [Formula: see text] are studied in this theory of gravity. We analyzed several physical behaviors of these relativistic charged spheres with the help of observational data and investigated the various aspects like density profile, stresses, the distribution of charges, stability, etc.