This seems like a stupid idea at first but it's actually amazing. They mix high resistance metals into the bricks so the bricks can conduct electricity and heat up while doing that. And then they blow air through the holes on the bricks to extract the heat whem needed. It leaks about 3% of the stored energy per day which is absolutely nothing considering it's cost
I'm gonna drop these papers here. First one is more of a brief intro and the second one discusses practicality and logistics of such systems
https://inldigitallibrary.inl.gov/sites/sti/sti/Sort_8882.pdf
https://www.sciencedirect.com/science/article/abs/pii/S0306261919305082