How can I filter by Matrix field
You can query Matrix blocks like you are used to with all other elements

{% set blocks = element.matrixFieldHandle.type('typeHandle').field('some value').all() %}


Keep in mind your field should be a valid field handle within your block type