First, a trackpad or touchpad can support all kinds of gestures. But it seems that a medium click cannot always be done. Likewise, in Windows 10, can be enabled quite easily. Now, in macOs and for MacBook, it's not that easy. The good news is that you can enable the central click on a MacBook with a free application called MiddleClick.
Middle click on MacBook
First, download and install MiddleClick. Run it and give the permissions for Accessibility to the application. All this under the preferences of Security and Privacy.
Once the application is running, you can tap with three fingers and run a "center click." The only problem is that in macOS, the gesture of playing with three fingers is already reserved for the “Search” function, which basically selects and searches for everything you touch.
Now, with this option enabled, you can right-click on a MacBook, but it will also execute the default search function. If you wish to disable it, open the System Preferences and go to the name preference "Trackpad". Now, uncheck the "Search and data detectors" option and you can click the middle button without anything appearing.
About MiddleClick
For starters, MiddleClick hasn't been updated in a long time. To be precise, it has not changed since November 2018. That said, it has been updated to run on Mojave and works perfectly with the current public beta version of Catalina. It is unlikely that any macOS update will break the application. Also, there is a possibility that if it breaks, the developer could update it.
Similarly, it works fine in its current state, so there is no need for an update yet. MiddleClick is a simple and single-purpose application, but it is not the only application that can run a central click. BetterTouchTool also does this and many Mac users already have it installed. But this application is not free.
It also costs USD 21 for a lifetime license and also has a 45-day trial period. Also, it is in active development, so if you end up buying it, you will know that it will be compatible for a long time. In the same way, you should use the trial version to see how much use you give it.
Use a mouse
While it is not the same, if you connect a mouse to your system, either wired or wireless, you can easily use it to execute a central click. The limitation is really only with the trackpad, which is incorporated into the MacBook. Also, it may not be the best solution, considering that you need additional hardware with which you will have to load. But it also works.