Extracting a block from a group of files

Things I have tried

I know that from a specific note, you can select a block with a specific title:
![[filename#title]]
Is it possible to extract blocks with the same title from the folder of a group of files into a separate note?

What I’m trying to do