You could use this kind of technology to extract the heat: https://enerdrape.com/en/solution/
> WILL THIS GEOTHERMAL PANEL SYSTEM COOL MY UNDERGROUND SPACE?
> No, the Enerdrape system primarily draws its energy from the ground. This does not affect the comfort of people using the underground space.