A file only has one extension (which can be hidden via the "Hide Extension" checkbox in the Finder's "Get Info" window).
The current version of MacOS and the Finder do not know anything about the concept of multiple file extensions ("a.txt.www
or "a.rtf.jet
", where the filename is just "a
").