Microsoft specifically blocked the ability to allow refresh connections in Excel files regardless of the location when the command is pushed via a flow.
I think because that could be used as a workaround for some capabilities like getting SQL data without needing a premium license.