Came here looking for this thread and was not disappointed. After being confused by my tank size and range, I got in touch with my dealership and just received a really helpful explanation of what is going on with the gas tank that I thought I'd share. I'm not happy with the explanation, but at least now the numbers make sense.
The 21.1 gallon gas tank is the 'dry' measurement of how big the tank is when it comes off the assembly line. But this is not how much "useable" gas the tank can hold. Once full, there are around 1.6 gallons that will always slosh around in the bottom of the tank below the fuel pickup to cool the fuel pump, as I think another owner mentioned above. Additionally, once the tank is filled, there is still another gallon or so of empty/air space at the top to allow for vapor, fuel expansion, etc. So while the overall volume of the tank may be 21.1 gallons, you really only have about 18.5 gallons of fuel you can actually use, and this is how your range is determined.
This tracks with what I have experienced only being able to add 18+ gallons when I fill up an "empty" tank, and my estimated mileage range of 260-270 miles upon fill up. Apparently there was a law change in 2022 that allows manufacturers to list the fuel tank size as the larger (but unusable) dry volume as opposed to the actual volume you'll be able to use once the fuel is actually put in the tank.
I did ask if the aftermarket has any larger fuel tank options and he said not yet, but that the prior versions of the GX and LX did have these, and it's likely only a matter of time if you really want a bigger tank. Which I do.