Query entire vault for code blocks and embed / aggregate into a single note

So I am trying to find a way to query code blocks by language and embed them into a single note.

For example: I have hundreds of notes with code snippets from multiple languages (python, bash, powershell ect). I want to query the entire vault and link all of my python snippets into the same place. I hope that makes since.

If there is already a way to do this please point me in the right direction.