Does the regex you currently have extract the password? if so then it can be used to access a protected excel file.
The Use Excel File activity in UiPath allows you to provide a password. You could provide mailPassword
as the password for the excel file to access it.