Brown spotting on and off from 7dpo and sharp pain down

Bandana

I am having on off brown spotting from 7dpo and u till now it's 11dpo and its still there.

Someday it's there and the other day its not and that too only once I wipe only one time.

I am having sharp pain down on right side abruptly when I stand up.

Please suggest what it could be?