CSS pseudo selectors are not a thing in Construct.
There are workarounds though. You can use a substitute sprite font or text object to display what gets typed in your text input box, which can be set to invisible. The first character in sprite font or text objects can then be accessed with the .left(1) expression and replaced with a suitable BBcode tag.