Changing the category for existing Gutenberg blocks

I’m trying to re-categorise some existing blocks (both core and third party). I’ve been told this should be doable using the registerBlockType filter but I haven’t had much luck.

Could someone share a working example?

TIA