This is called Carbon Capture and Storage and so far it has never been worth it energetically. And the only companies doing it are oil companies in a process known as enhanced recovery which pushes more co2 out than is pushed in. The OP was right. Better to leave it in the ground