Most of the CO2 stays in the body, which ultimately means that significantly more O2 is used up than CO2 is introduced back into the air again.
The comment about submarines is highly interesting to me, I will look into the studies! If you have any sources about that to share, I would love to read them.