You should use a query fragment to wrap the JSON access:
# Assuming that the variable input = ["tag1"]
select o.id::text, o.name, o.geom, o.tags, o.address, o.open
from organizations o, jsonb_array_elements(tags) as t
and fragment("(?->>?)", t, "text") in ^input






















