Locating code blocks of a given type

I’ve already found that the section part of the metadataCache refers to which notes have a code block, but is there a way to locate which type of code block it is besides actually reading the file?

I’m thinking along the lines of doing queries against the cache to locate all dataview or dataviewjs queries, or given a new plugin introducing the thingy code block, then having an easy way to locate all those thingy code blocks.

If this is currently not possible, do you think this would be useful and worthy to post in Feature requests ? I imagine it wouldn’t be that hard to implement since Obsidian already are detecting the code block fences, so it would just also need to pick up and cache the text behind the leading code block fence.