The data explorer has special logic (“Automatic Entity Resolution”) to show links to various objects whenever a column name is user_id, group_id, topic_id, category_id or badge_id.
However, it also triggers on tag_group_id and it sees it as a group_id whenever a group with the same id is available.
How to reproduce
create a tag group
add a tag
create a data explorer query SELECT id, tag_id, tag_group_id FROM tag_group_memberships
Sure, putting a pr-welcome here, feels like we need to make the regex a bit more fancy. I guess it trying to compensate for allowed_xyz_group_id and the like, but now we need a special rule to stop tag_group_id