Brew Doctor says SDL is depreciated?

Hi, when I ran the command ‘Brew Doctor’ in a terminal window under macOS 10.15.7, I got the following message back:

"Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don’t worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
sdl
sdl_net
sdl_sound"

How do I fix the problem?

That’s because those SDL packages are old 1.2 version that is indeed deprecated - https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/sdl.rb

You need to install sdl2 package instead.