Text this: Testing the lepton content of the proton at HERA and EIC