Unix ODBC Driver for MS SQL Server does not exist for this version of Linux Mint. Trying to install from the nearest ubuntu repositories makes apt have a fucking meltdown.
I had to use the instructions for Ubuntu 22.10, which is strange because all Linux Mint versions as far as I can tell are based on Ubuntu's X.04 releases, so 21.1 should = 22.04. The MS website tries to give you a shell script to be fancy about it but because Mint's verison numbers don't line up it just errors out and doesn't do anything. But after several hours of fucking around with apt packages that couldn't properly resolve dependencies I found a comment here that finally worked
ALSO: The Unix SQL Server ODBC version 18 introduces a new breaking change related to SSL verification compared to v17, which is what I had before. I mistakenly thought this might be a pyodbc issue but no it's a driver issue

