Something like AAWP plugin:
https://getaawp.com/docs/article/filtering-products/
See filter_by = title and specially filter_type option.
There are include and exclude options. I would extend a little more and if you can include logical operators as and, or, not, … would be a great feature.
I does not matter if it implies multiple API requests. When you look for a keyword in Amazon sometimes it shows unrelated products. With this filter you will be able to exclude ones that you don not want to show automatically.
Thanks.