Retrieve all available Finder tags on Monterey and later

I wonder if anyone has figured out a way to retrieve ALL available Finder tags on Monterey and later?

On pre-Monterey systems, it was possible by reading this file:

~/Library/SyncedPreferences/com.apple.finder.plist

However, this file doesn't exist anymore.

Other methods (such as reading Finder prefs or fileLabels of NSWorkspace) only return the 8 standard labels - but not any custom tags created by the user.

Googling the subject didn't produce any results.

 

Thanks for any info,
Leo

Retrieve all available Finder tags on Monterey and later
 
 
Q