Following up https://github.com/twbs/bootstrap/pull/36461, same modification should be applied to _badge.scss and _tooltip.scss to retrieve the behavior that was present before the addition of CSS vars for these components.
References - History
How to test
Set locally $enable-rounded: false !default
in _variables.css and check corresponding pages in the docs.