I have previously made patterns like this in photoshop, but can't remember how and which function I used. I hope you can help me or maybe what the name of such a pattern is, so I can find a guide via google
This pattern is one of 17 so-called wallpaper groups. To create them in Photoshop, open the Libraries panel, and click on the Plus sign icon at the bottom, and choose "Extract from Image".