Constraints on charged black holes from merger-ringdown signals in GWTC-3 and prospects for the Einstein Telescope