The Social Security withholding by the prior employer does not matter to your new employer. Every company must withhold Social Security tax without considering what an employee's prior company withheld. This can result in Social Security withholding (6.2%) beyond the annual income ceiling of $160,200 in 2023.
To find out how you can recover the excess amount, and whether you can arrange this as a tax credit or as a refund, see the FAQ on that topic.