Your first link talks about a specific derogation approved by the EU parliament. It provides an exemption to the ePrivacy directive, which allows for (existing) searches for child sexual abuse material by major content providers to remain legal. Without this exemption these searches would apparently be in violation of the ePrivacy directive.
https://european-pirateparty.eu/parliament-approves-chatcont...
https://www.patrick-breyer.de/en/posts/chat-control/