Record the exact message and when it appears: during a lobby invite, matchmaking search, or server connection. Each stage can fail for different reasons. If friends cannot queue either, check Steam service availability first and retry later.
If only you are affected, open the Steam library and check that the client is online. If possible, repeat the same step over Ethernet instead of Wi-Fi. If one server fails, compare with another available CS2 session.
After those checks, recreate the lobby or restart Steam and CS2. If the message returns, keep the time, mode, screenshot, and comparison result. That helps support identify where the connection stopped.