If you are using out of the box ‘Export to excel’ button then it is not possible to add a confirmation. In order to do that you need to add an action button and create a custom microflow to export your data.
You need to use the XLSReport module for creating custom exports.