Social Security taxes paid are not refundable.
However, if you had two or more employers and the total of the SS taxes paid was greater than $9,114 in 2022 the excess taxes paid will entered on your 2022 tax return as a tax payment and will be included in the federal tax refund or will reduce the amount of taxes owed.