Jolokia2: Partially extract mbean names for tags

I’m working on using Jolokia2 to extract Dropwizard style metrics exposed in Jenkins. The Jolokia2 plugin works fine but the tags that it is extracting have alot of repetition in them. For example http response codes

Jolokia2 config

mbean    = "metrics:name=http.responseCodes.*"
paths    = ["Count", "OneMinuteRate", "FiveMinuteRate"]
tag_keys = ["name"]

gets tags like

http.responseCodes.ok
http.responseCodes.notFound
http.responseCodes.badRequest
http.responseCodes.serverError

I’d like to do a regex capture
http.responseCodes.(*)

or replace the string prefix
http.responseCodes.

Has anyone done something similar?

Also forum admins - can add tags for the different telegraf plugins?