Heat pumps can also use heat baskets, groundwater, or trench collectors as heat sources. However, both are quite expensive and will never recoup the investments.
I don't see it that way. We bought, for example, system collectors (a package for self-installation). It costs about €3000 including excavation work, etc. Additionally, the brine heat pump costs about €1000 more.
In return, you get a €4000 subsidy from BAFA and have a better annual performance factor and thus somewhat lower consumption than with an air-water heat pump.
It gets even cheaper if you build a DIY trench.
However, this involves personal effort.
Just read up on it in the Rosa forum.