Hello @Berek
I think that there is no need for extensions, just standard VS Code settings. Go to settings and type Terminal. You are looking for: Debug > Terminal: Clear Before Reusing. Tick the box and every time you will run your script, the terminal will clear itself from previous output.
Hope this helps with your query!
-------
--If the reply is helpful, please Upvote and Accept as answer--