Sounds maybe like your mucus plug I would call ur ob
Third pregnancy currently 36 weeks & never had brown discharge, let alone related to sex. But...... if you are worried / when in doubt call your Dr / midwife this is something they should know. Good luck!
Have you had sex recently?