Short answer
HubSpot's KB: links in social posts become 23-character hubs.ly, hub.li or hub.lu tracking links. Shortening can't be turned off. On X, the link uses 23 characters of the limit.
1. In HubSpot
The relevant screen in my demo portal.

2. Worth knowing
Shortened links can't be previewed in the social tool.