How to swap Ctrl and Function key?
From Apple documentation (Change the behaviour of the modifier keys on Mac)

On macOS 10.13 and later, you can also change the behaviour of the
Function key on keyboards that have an Fn key – except keyboards with
a Touch Bar.