You can use below guide to create tags dynamically from Airtable and customise it according to your requirement. For example using Horizontal scroll arrangement instead of horizontal arrangement. Likewise you can code it to get the text of particular tag when it is clicked.
You can use this guide as a base and customise it in all the possible ways you can think of.
OR
You can use below extension to create tags and do something after you get the index position of clicked tag