For situations where the redeposit is automatic, I find it takes 15-90 minutes typically before you can actually use the miles again.
Fees DO come back to you but take up to a week or so. Sometimes (1 out of 10) I get a wallet travel credit that represents the fees that couldn’t be refunded for some reason and have to be manually processed. I handle these though app chat once every six months to clean up the account.