The tax-free redundancy payment (up to £30,000), ie the lump sum you’d get for being made redundant, isn’t counted as pensionable earnings and therefore isn’t subject to pension deductions. What you receive in your final period of employment which is your normal taxable pay will be subject to the same auto-enrolment deductions.
If you wish to use your redundancy pay to make pension contributions, you can up to your annual allowance (this would be an employee and not an employer contribution). Please note that if you’re under 75, you’re eligible to pay in up to 100% of your UK taxable earnings or up to £3,600 gross and receive tax relief on your contributions. However, only the redundancy payment over the tax-exempt threshold of £30,000 will be classed as employment income and therefore count as relevant UK earnings.