After you file

Sorry those are a mandatory tax.  You don't get those back.  But if you had more than 1 employer and went over the max for Social Security you can get the excess back.

 

For 2023 the max for Social Security is $9,932.40 on $160,200 of wages (160,200 x 6.2%).  W2 box 4.