How to add a variable as a tag base?

I don’t say this often but in this case: It is impossible without:

  1. hard coding the tags and adding dedicated rewrite rules for those or
  2. getting the current tag list on each request and updating the rewrite rules (very slow).

In short: No, forget it.