Hard to say as the OP is a bit lacking with the details.
For sure, hard to say.
But the thing is, dodgy, used, damaged, faulty, and mis-branded fraudulent battery cells are sold every day. Just because they are 'samsung cells' doesn't mean anything. I can't just assume 'oh, Samsung cells. Good. Well, let's assume that the OP randomly decided to destroy their system settings for no apparent reason'. The supposedly compatible batteries may not perform as they are supposed to; either due to fraud or due to fault.
The point I was making is that if for any reason the cells can't handle the charge rate, discharge rate, or temperature (or nothing is wrong with the cells and something is instead wrong with the protection circuitry), the protection circuitry which is in series with the cells will turn them off. That will appear as a 'plugged in, not charging' indication, and the laptop would probably throttle in response.
The protection circuitry would cycle repeatedly due to temperature or overcurrent protection cycles. Trip, cool-down (literally or figuratively), reset, trip, ... repeat. Protection isn't a just works or doesn't work thing. Assuming that nothing else was changed by the OP for no apparent reason, a battery issue is the most obvious explanation of the observed results, given the fact it was the most recent thing which changed.
We can't make an assumption that the batteries are good. I would assume that they are not good. In troubleshooting, don't assume an outcome.
Or, let's be honest, the first or second-most obvious possibility is that the laptop charger or laptop charging circuitry is damaged.
OP: A picture? A link? A response? A ANYTHING!?