Only show tag with the same id as the post

Can you try to escape the variable $post_id?

Like so: ”.$post_id.”

So use the single quote twice.

You are querying a slug and your variable is a number.