You can use @Sunspots method of splitting the “prefix”
This method does not break with changes to tags or their order.