"Where" function with "in" doesn't work?

Could I know why this does not work, and how to make this work?

+++
tags: ["foo", "bar"]
+++

{{ range where .Data.Pages.ByTitle "Params.tags" "in" "foo" }}

Tags is likely being used as a taxonomy and wouldn’t appear in the Params

Still this does work, in the similar way explained in the document.

+++
tags: "foo"
+++

{{ range where .Data.Pages.ByTitle "Params.tags" "foo" }}

I’m confused…