I don’t know of any lender that will approve a loan while listed on MLS.
If dealing with a “Rate & Term” refi, (no cash out) it might be possible to get an approval or exception depending on LTV and the strength of a borrower, as soon as it is off MLS.
If wanting a “cash out” refi, it can be 6 to 12 months off of MLS for a loan approval.
The obvious reason is someone who says heck I can’t sell it, let me get some cash out and the lender can have it..
Guidelines are constantly changing, but the above hasn’t changed much.