Progress should be saved everytime you complete a level, but not the progress of the level itself. If the unlocked levels are locked again, it might be a bug. What OS are you using?
Did you put the game in program files folder or something? The game might have no permission to create a save file if it's in there, windows 10 is janky like that