Is there a way to extract all gameplay tags from a container that are from a specific tag parent?

lets say I have the tags
firemode.semi
firemode.burst
firemode. fullauto

if this actor has a container with only the tags firemode.semi, and firemode.burst, along with other tags, then is there a way to input this container and only extract tags with the parent firemode., thus will return another container or array of tags containing only firemode.semi and firemode.burst

not sure if there is a better way since im not in editor but

BreakContainerToArray

LoopOverArray → IfMatchsTag(firemode) not exact→ AddToArrayB

return ArrayB