401k Hardship Withdraw

Hi and thanks in advance for your help. I took $20,000 out of my 401k in 2025 via the hardship withdraw. I know I owe an additional 10% penalty on this amount. With the new law allowing $1,000 withdraw without penalty, do I only owe the penalty on the remaining $19,000?