Extract mail with defined attachment format

I need to extract unread and formatted emails and that the format in the subject line is: 111111111; PEPITO PEREZ S.A.S; 111111111; 01; PEPITO S.A.S;
what is in bold does not matter
My problem is that the subject comes in this format but it is random because several senders send with this format, I also need to download the attachments of this format which can be .zip, .xml, .pdf, I am using Gsuite activities.
Could you please help me by telling me how I can do this?
Thank you very much