Non-oxygenic photosynthesis (anoxic photosynthesis) uses photons at longer wavelengths to split molecules such as hydrogen sulphides rather than water, and is far more suited to the light from red dwarfs.
So life on Trappist-1? Likely no Great Oxidation Event, but instead anoxygen photosynthetic bacteria would dominate over oxygen-producing cyanobacteria. Without oxygen, complex animal life may not exist! -- William Welsh at #IAU2024 #Astronomy2024