Filtering a specific tagType using System.tag.browseTags

I am currently using the system.tag.browseTags() function to pull tags from a specific UDT in my program. My issue is that inside this UDT there are sub-folders. So I use the recursive=True parameter to return the tags in each sub-folder. My issue is that this also returns the Folders themselves which I dont want.

Basically Im trying accomplish returning all tags without returning the folders, which I assumed could be done with something like:

returnTags=system.tag.browseTags(parentPath=tagPath, tagPath = '*', tagType = !'Folder', recursive=True)

But this doesnt seem to work. Can someone point me in the right direction? My other thought was to include all other tagTypes in the filter and exclude ‘Folder’ but this would require itteration which Im trying to avoid (unless there is also a way to specify more than 1 tagType in a single call).

As far as I know you will need to manually recurse the browseTags in order to use multiple tagType filters.