How to query related posts based on current post terms?

Hi !

I have 3 custom post types created with ACF: video, podcast, events. They share the same tags: A, B, C,…

At the end of my post templates, I want to display related articles based on the tags. I cannot use the pre-build related post component because it is limited to a single custom post type.

I’ve tried adding a taxonomy query but it is a fail for now.

Is there a solution to query only the posts (of any type) that share at least one tag with the current post?

Cheers!