Hi, I am new here, so I want to apologize if I mess something up. I have the following problem…

I am restoring a division in my house. It’s a high ceilling area, with wooden beams supporting a hardwood floor that divides the space into a dining room (lower) and an office (upper).

My father thought the wood was in good shape, so he replaced the hardwood floor above the beams. Afterward, his plan was to apply protection to prevent woodworms and then oil for the finishing touch. But, upon closer inspection, I noticed all the wooden beams have these small holes (which I suppose are woodworms already).

Also, I knocked on the wood, and it seems hollow.

Should I replace all the wooden beams and then reapply the hardwood floor? Is there any way to recover these beams?

Thanks in advance.