Unable to create partial indexes using bloom
The WITH clause comes before the WHERE clause in the CREATE INDEX syntax.  You are not free to rearrange the order as you have attempted here.
This ordering is a little unintuitive to me, but that is how it works.