The photosynthesis equation is
Carbon dioxide is removed from the atmosphere during photosynthesis. Forest and ocean remove carbon dioxide from the air. The more Carbon dioxide in the atmosphere the more plant growth and oxygen production.
Carbon dioxide in the atmosphere can be a good thing.