early withdrawal penalty on my cd

hello,

I got 1099 INT  for my cd for year 2023.  However, I redeemed and withdraw the amount before it matures this early of 2024. My question is can I deduct the interest penalty for 2023 as they took out almost 6 months of last year interest (2023) with the amount that I got back. Please  help. My 1099 Int for 2023 does not show the penalty for early withdrawal.

Thank you