In order to avoid the penalty for excess HSA contribution, is it sufficient if I submit a refund request by deadline or do I also need to receive the refund by deadline?

I made an excess contribution of $500 in 2020