When making a dynamic relation filters, it can only use to-one relations as references and not to-many (contains any of). This is a limitation.
Use case: show all other contacts in the company when logging a call. A call can be with multiple people. Maybe from different companies. If I select one person from company x, it should then show me all other people in company x. If I then press someone on company y, it should show everyone in company x and everyone in company y.