Categories Related To Matrix Fields
You have to insert your matrix field into the rated to param like here 

{% set entries = craft.entries.section('subShops').relatedTo({
    targetElement: sandwich, 
    field: 'sandwichBuilder.breads' 
}) %}