Can I get the values of the tags field in use on the entity page?

I’m using the tag as multi-entity in version entity, but when I press the filter on the right side of the sg page, I get the values of the tags field that can be filtered, so can’t I get those values using python api?