This would usually form part of your payroll journals. We have an example of a journal in our below guide - we’ve tried to include the various options, but the bottom lines relate to pensions:
You may also find this previous thread helpful:
Employee's Pension Contributions