The following program which someone recommended to me here in HN has been a godsend in this regard since it allows me to configure my taskbar the way it was in Windows 10: https://www.startallback.com/
Related and open source: https://github.com/valinet/ExplorerPatcher