we need to select it and remove the stroke and fill.
Now select all your elements, including the now transparent square. Go to your edit menu and select ‘define pattern’. Give it a name and hit ok and you’ll see it appear in your swatches box. If you’re feeling like a bit of a whiz kid at this stage, you can also just select all the elements and drag them into the swatches box to create your new pattern swatch.