Make sure the trainer ids and such match and also don’t have illegal Pokémon and you should be good.
I would double check the code again, make sure you deleted the colon. And make sure everything is saved in the proper place. OP has a really easy to follow guide. Then I’d start the game and use...
I tried both on scarlet. Was on 1.0.1 and then updated the game and used new cheats and works fine. Make sure you’re using the right codes for the right game