Recently I noticed that Composer has released version 2.0.x. I have composer installed through Homebrew, so I ran homebrew update and homebrew upgrade
homebrew update
homebrew upgrade