How can I force Xcode to respect ssh git remote pattern for dependencies and submodules?

I've made an SO post about this here.

The long and short of it is that Xcode is not respecting the insteadOf pattern supplied in my local and global .gitconfig which asks for all packages to be fetched using ssh. Xcode also seems to be failing to use my supplied credentials for package fetching, despite being capable of making other requests to GitHub that would require auth. As a result, I can't use HTTPS either.

I can build just fine outside of Xcode (i.e., just using the swift CLI). But, as this project grows, the lack of syntax highlighting and suggesting is going to become a nuisance.

I believe I've tried every suggestion/guide provided with the following links:

At this point, I've found it easier to configure VSCode instead of Xcode. So, I'm making that my answer.

How can I force Xcode to respect ssh git remote pattern for dependencies and submodules?
 
 
Q