The ruby sass gem also installs a command line tool to convert to and from SCSS. Use it for a directory of .scss-files like
.scss
sass-convert -R assets/stylesheets --from scss --to sass
Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)