Dune exclude *.bs.mjs files?

Short question: is there a way to tell dune to exclude all files of the form *.bs.mjs ?

I searched through Stanza Reference — Dune documentation but it focuses on excluding directories, whereas I want to exclude files.

The XY problem is: I have a directory shared between (1) dune and (2) rescript. Rescript is generating foo.bs.mjs from foo.ml; which is then confusing dune.