When you design beautiful block patterns for your theme, Pattern Manager by WP Engine will automatically push them into PHP files for you, every time you save. With a dedicated studio to design and build block patterns you can 10x your ability to work effectively with patterns.
See Jamie Marslands recommendation of the plugin here: Everyone should be using this FREE WordPress plugin 🔥
OBS !
There's a new plugin that might do a better job!
As described in my shaarli about the Pattern Manager, it looks like a recommended way
With BlockMeister creating custom block patterns becomes easy. The patterns can be designed just like you design a blog post or a page with the block editor.
You can assign any (custom) category or keywords. By doing so, your patterns are categorized in a way that makes sense to your users and keywords make it easier to find a pattern.