Will USCIS Refund Fee that I sent the check for H1B Premium Processing

Hello, I applied for H1-B extension in May 2022. I waited until September to see if it gets approved. As it was not, I applied for premium and mailed the check of $2500. Fortunately, before the check reaches the USCIS, my extension got approved but the next day, the check has reached USCIS. Will they check the current status before they deposit the check and as it is already approved, will they send the check back? Even if they deposited without seeing the current status, when they see it, will they refund it by sending their check? Please clarify.

They will most probably return the check if case is already processed.