Hi @Moshe Plotkin ,
Please check out this thread, it mentioned that this issue seems to be prevalent in Localdb v2017 and later versions
You can try to install the cumulative updates for SQL Server:
KB5003342 - FIX: SQL Server Express LocalDB can't start or connect to shared instances of SQL Server Express LocalDB 2019 or 2017
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.