The file with the tilde in the title is not associated with SAS. It is created when Microsoft Excel opens a file and will disappear automatically when Excel shuts down normally.
For example, here are the folder contents while test.xlsx is open in Excel:

And after I close Excel, this is the folder contents:

If Excel crashes with a file open, the file with the ~ in the title remains in the folder.