Unraveling Gluon TMDs in J/ and Pion production at the EIC | Synapse