You don’t specify which version of core you are using. 3.1 is a LTS version, while 5 is not. 3.1 support ends 12/3/2022, while 5 support ends earlier on around February 2022 (3 months after 6 release).
Version 6 will be a LTS release and is due in September. At this point, I’d skip 5 and upgrade to 6 when you feel ready.
If you do upgrade to 5, plan on an upgrade right away to 6.