I wonder how we could work this for an urban setting - could we use the water lines?
In a dense urban setting, you can heat homes with water heated at the local power plant, either fossil or nuclear. https://en.wikipedia.org/wiki/Cogeneration
I don’t think they’ve bothered to calculate the effects of pumping warmer water into everyone’s air conditioned home...
Here are some calculations suggesting that the numbers simply don't add up for ground-source heat pumps at urban population densities: https://www.withouthotair.com/c21/page_152.shtml
No need to muck around with fins in the sewage, or trying to convert to electricty, simply heating the incoming water a degree or two saves energy for your water heater.