Compiler syntax error

I have been looking at this line of code for hours (it seems like it) and I can’t see what the compiler doesn’t like about it. It says that there is a syntax error but I can’t see it. The line is:
print(f"[*] Listening as {SERVER_HOST}:{SERVER_PORT}")
Can somebody help?

You are most likely running the script with Python 2. f-strings (the thing that lets you interpolate variables into your strings) were only introduced in Python 3.6.

As Matt Williams said, or you have an opening parenthesis on a previous line without a matching closing parenthesis.