Is it possible to search/find pages based on the blueprint used?

Would this have prevented my problem at Problems with dynamic blueprints in my self-made Kirby plugin - #12 by Baloralys?

Could you please give me an approach on how to solve it? I tried a lot of things and I don’t think I could solve it with intendedTemplate. But I probably went about it the wrong way.