Varying items for single recipe slot. 1.18.2

Heyo I've tried some stabs at trying to make a recipe that uses a group of items for a single cell in a recipe, say slot y in the pattern can have multiple varying items for its recipe how is it suppposed to be written?

  "type": "minecraft:crafting_shaped",
  "pattern": [
    "yw ",
    "xz ",
    "   "
  ],
  "key": {
    "y": {
      "item": "itemy"
    },
    "w": {
      "item": "itemw"
    },
    "x": {
      "item": "itemx"
        },
    "z": {
      "item": "itemz"
    }
  },
  "result": {
    "item": "output",
    "count": x
  }
}```

Is it written as:
```  "key": {
    "y": {
      "item": ["itemy", "itemy2", "itemy3", "itemy4"]```

Or do you repeat the recipe format for each item multiple times like:

```  "key": {
      "y": {
      "item": "itemy"
    },
    "key": {
      "y": {
      "item": "itemy2"```

or repeating the entire recipe multiple times with a different variation for y?

If none at all what steps would be needed to make a group of different items for slot y?
Continue to help post