"Strange text, called on accident: I received a text that said, it’s been a long time since we met. Are you OK? Of course I hit the number and accidentally dialed. What happens when you accidentally dial a number ? Can they get any info from me dialing the number and immediately hanging up?"
-------
Blocking Messages:
A. Using the App Called Bouncer:
For text messages, there is an app called Bouncer, which block messages out by keywords. But, if these are not text messages, then is would not be an option. Here is the link: Bouncer: Text Messages Blocker 4+ - App Store
B. Use Malwarebytes Mobile Security:
The free version blocks popups. The paid version blocks out known spam numbers, lets you add number to the block list, and allows you to report these numbers to the Developer. So, consider using it. Read the following post to see how to use this software: Blocked numbers - Apple Community
Get it Right in the App Store: Malwarebytes - Mobile Security - App Store