I managed to solve it, I modified the settings.json, added
httpStatic: [ { path: path.join(os.homedir(), '.node-red', 'st'), root: "/st/" }]
, I created the st folder and placed the chart.js file inside of it, then I imported it using
<script src="/st/chart.js"></script>
Thank you very much for your help.