In London the Thames Tideway Tunnel is designed to intercept and divert sewage overflows from the River Thames, particularly during heavy rainfall:
https://www.bbc.com/news/science-environment-68464798
I think there's a B1M episode on Youtube that has a good overview.