Have a look at PostgreSQL 13 update.
You need to rebuild a couple of times. Sometimes people just didn’t know to rebuild again and it worked. Sometimes (but not often) there’s something more difficult.
Worst case you can make a new install and restore the backup.