One possibility is because you were working out. When you exercise your muscles will retain water to keep you hydrated. Your body will eventually release the water and you’ll have a better idea for your weight.
In term plateau, it’s definitely the carbs. I experienced this as well. Start eating with no or low carbs consistently and you will see a difference. Carbs also encourages your body to retain water.
That’ll be water weight. You’re still alive, so your body must’ve been burning something for those 3 days, and you’ve remained in a calorie deficit since then, so you couldn’t have put any actual (solid) weight on. So in short, you’re retaining over 1.2kg of extra water compared to when you started the fast, which could be down to any number of reasons (my weight fluctuates by more than that every day, so it’s nothing to be worried about).
Keeping track of your overall weight is fine, but don’t get hung up on the numbers, if you’re burning more calories than you’re taking in, you’re going to lose body fat, even if it doesn’t always show on the scale.