A system of recovering a hydrocarbon from an insoluble matrix comprises an extractor, a first separator, an expander and an energy transferring device. The extractor is configured to combine supercritical CO2 with a hydrocarbon-containing insoluble matrix material to form an extraction mixture. The separator is configured to separate the extraction mixture into an extracted insoluble matrix material and an extract, wherein the extract comprises supercritical CO2 and one or more hydrocarbons. The expander is configured to expand the extract to produce a CO2-rich gaseous phase, a hydrocarbon-rich liquid phase and mechanical energy. The energy transferring device is coupled with the expander and configured to transfer at least a portion of the mechanical energy generated in the expander to a supercritical CO2 preparing device to produce supercritical CO2. Embodiments of the present disclosure further refer to a method of recovering a hydrocarbon from an insoluble matrix.