Text this: Unveiling the Cosmic Chemistry: Revisiting the Mass–Metallicity Relation with JWST/NIRSpec at 4 < z < 10