If a transaction fails (like due to an EVM execution reverted error), the Ether used in the transaction is not lost but returned to the sender. However, the gas fees paid for the transaction are not recoverable.