When using jupyterlab-toc as usual, the folding arrow disappeared I can't open the code that was already folded and it's stuck, so I'll leave a workaround.
Open Advanced Setting Editor
The solution is to change the Table of Contents setting to true and update.
I did it