This paper examines the viable attributes of charged compact stars with anisotropic matter configuration in ffalse(scriptR,T2false)$f(\mathcal {R},\mathbb {T}^{2})$ theory. For this purpose, we use the embedding class‐1 technique and consider a specific functional form of this modified theory, i.e, f(R,double-struckT2)=scriptR−γT2$f(\mathcal {R},\mathbb {T} ^{2})=\mathcal {R}-\gamma \mathbb {T}^{2}$ to examine the geometry of compact objects. The values of unknown parameters are found by the smooth matching of interior (static spherical metric) and exterior (Reissner‐Nordstrom metric of energy‐momentum squared gravity) spacetimes. We investigate the impact of effective fluid parameters anisotropy, equation of state parameters and energy bounds in the inner region of the charged stellar objects. The stability of the stellar models in the presence of charge is examined by speed of sound and adiabatic index. We find that embedding class‐1 solution is physically viable and stable for charged anisotropic stellar objects in this modified theory.