Would not panic yet. More legit methods e.g. dexa are unreliable in determining body fat percentage never mind scales. A 5% body fat increase is enough to be picked up visually. You may have to compare pics from before to now but I really doubt you went up 5% and didn’t notice it. Look now. If it doesn’t look like you’ve got fat af then the scale is bullshit.
Highly doubt you’ve recompositioned fatter while more or less being the same bodyweight while still training intensely and dieting properly (see below).
Stop using the scales for anything other than weighing yourself. Unless they are highly advanced full body scanning scales like some MRI looking contraption they are only giving you estimates of questionable accuracy. Will throw you off and make it hard to track progress or make you second guess yourself and make all kinds of drastic changes e.g. this situation.
99% of time is people not being accurate, consistent or honest with themselves regarding calorie balance. Will give you the benefit of the doubt tho…
How many tho calories tho? Macros are three lots of how many grams of each macro nutrient not your percentage split. It could 50/0/50 or 40/30/30 or whatever: macro percentage split is of lower priority when dieting for body composition than caloric balance i.e. how much vs what. I mentioned people not being accurate with their macros before: is this you?