Refactor matching ${tag_parts} placeholder