I had intercouse with a male at the age of 1X and now I regret it. What should I do and will it affect my marriage?

Seek Allah’s forgiveness and reach out to the one you harmed in the process for their pardoning and forgiveness.
This doesn’t affect marriage so long as your sincere in your intention