Funnily enough I am the same way IRL, always following 'the protocol', but I write the opposite, all my characters end up rebelious in some way.
Generally a lot of people seem to think 'disobeying the law' is a bad thing, but here is the catch, it is not inherently an evil act. Lots of people disobey the law for various reasons... And you can also change 'law' to any conventional norm. Here is the think, there is an extent you can do that where it's not a bad trait to have in moderation.
Running over a red light hurts not one when there is no other car in the street and you are sure you won't hurt anyone.
Being loud is sometimes the only way people will get you what you want, and sometimes what you need as well (even in a life and death situation some people will just stare blankly and let it happen)
If you are too nice in your work and let others take promotions without a fight, you won't grow.
Being rude in the correct amount is key for life in society.
In my story one of my characters Azreth is a total rebelious guy, he ran away from his father (he is a prince, so yeah he is falls in the runaway princess trope), he generally is chaotic neutral (and sometimes he goes full chaotic evil), he likes to manipulate people just for fun, and anoys them just to see them mad... all of these sound like terrible things right? So how do I write him so that he can be relatable?
Well sometimes he does bad things for good reasons, he generally doesn't care for other peoples feelings other than the two other main characters, and even then only to a certain extent, so when he says and does something rude for the sake of protecting them (even from themselves), it feels less like he is the asshole and more like he got a point.
Like in one situation Grey (another main character) is having a particularly bad day and is acting up, Azreth notices that and bashes him for it pointing out that 'Sure you're sad, but that doesn't excuse you acting like a dick to us'.. Here his lack of restraint is used positively.
Another example is the fact Azreth has very little physical boundries, he is the kind of guy who just slides his arm over your shoulder and smiles like he is talking to an old friend, which is useful for dealing with Vernon, a generally shy and introverted character who is very touch starved and can't bring himself to admit he missed contact with other people... He is still just as selfcentered, and has his own reasons for getting so close to Vernon, but he ends up helping more than he hurts.
And don't worry, these traits are recognised as BAD inside the story, and will be adressed later as he develops as some times these very same traits cause problems to the group.
So you see... 'bad traits' can be used for good, just like chaos and rebelion can be used to make a character MORE relatable. A general dislike for following the rules or cultural norms, or a flat-out mischievous nature tha is not inherently bad, it is just a trait that is more common in villains rather than in heroes.
It is important to identify the kind of 'rebelion' your character does, and why the do it. so that you can be more in control of 'how' they do it... A character can just have a distrtust for authority due to a bad experience with a parent or governement figure, they could be mischievous and use pranks as a way to call attention cause they were taught that way from a young age... And so on..
TLDR: Bad behaviour and attitude can be used for good, give ample time for the character to show how those things are GOOD AND BAD and you will easily create the perfect rebelious character to be your resident 'bad boy'.
(Also, the bad boy with a heart of gold is one of my favorite tropes xD)