The Glacier Express is included in the Swiss Travel Pass Flex. So you don't need to buy a ticket. You do need a seat reservation. You can download the map from the pass page to see what's included. All about the Glacier Express can be found here.