The problem was that the glob was invalid. Not the one I though, but other in the codebase.
Search for other globs in your code base.
Answering for anyone out there that needs this.
Astro.glob() itself isn't broken, which is what I thought previously